2007-09-23 08:04:46 +00:00
|
|
|
#!/usr/bin/make -f
|
2007-09-23 08:04:20 +00:00
|
|
|
|
2007-09-23 08:04:51 +00:00
|
|
|
all: install
|
2007-09-23 08:04:20 +00:00
|
|
|
|
2007-09-23 08:04:51 +00:00
|
|
|
test:
|
|
|
|
set -e; for SCRIPT in functions/* examples/*.sh helpers/* hooks/*; \
|
|
|
|
do \
|
|
|
|
sh -n $$SCRIPT; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install: test
|
2007-09-23 08:04:46 +00:00
|
|
|
# Installing executables
|
|
|
|
mkdir -p $(DESTDIR)/usr/bin
|
|
|
|
cp helpers/lh_* helpers/make-live $(DESTDIR)/usr/bin
|
2007-09-23 08:04:20 +00:00
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
# Installing shared data
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/live-helper
|
2007-09-23 08:04:50 +00:00
|
|
|
cp -r examples functions hooks includes lists templates $(DESTDIR)/usr/share/live-helper
|
2007-09-23 08:04:20 +00:00
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
# Installing documentation
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/doc/live-helper
|
|
|
|
cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper
|
2007-09-23 08:04:40 +00:00
|
|
|
|
2007-09-23 08:04:47 +00:00
|
|
|
# Installing manpages
|
2007-09-23 08:04:51 +00:00
|
|
|
set -e; for MANPAGE in manpages/*.1.en; \
|
|
|
|
do \
|
|
|
|
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \
|
|
|
|
done
|
|
|
|
|
|
|
|
set -e; for MANPAGE in manpages/*.7.en; \
|
|
|
|
do \
|
|
|
|
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \
|
|
|
|
done
|
|
|
|
|
|
|
|
set -e; for MANPAGE in manpages/*.1.de; \
|
|
|
|
do \
|
|
|
|
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \
|
|
|
|
done
|
2007-09-23 08:04:47 +00:00
|
|
|
|
2007-09-23 08:04:51 +00:00
|
|
|
set -e; for MANPAGE in manpages/*.7.de; \
|
|
|
|
do \
|
|
|
|
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \
|
|
|
|
done
|
2007-09-23 08:04:47 +00:00
|
|
|
|
2007-09-23 08:04:20 +00:00
|
|
|
uninstall:
|
2007-09-23 08:04:46 +00:00
|
|
|
# Uninstalling executables
|
2007-09-23 08:04:47 +00:00
|
|
|
for HELPER in helpers/*; \
|
|
|
|
do \
|
|
|
|
rm -f $(DESTDIR)/usr/bin/`basename $$HELPER`; \
|
|
|
|
done
|
2007-09-23 08:04:21 +00:00
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
# Uninstalling shared data
|
|
|
|
rm -rf $(DESTDIR)/usr/share/live-helper
|
2007-09-23 08:04:22 +00:00
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
# Uninstalling documentation
|
|
|
|
rm -rf $(DESTDIR)/usr/share/doc/live-helper
|
2007-09-23 08:04:20 +00:00
|
|
|
|
2007-09-23 08:04:47 +00:00
|
|
|
# Uninstalling manpages
|
2007-09-23 08:04:51 +00:00
|
|
|
set -e; for MANPAGE in manpages/*.1.en; \
|
|
|
|
do \
|
|
|
|
rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \
|
|
|
|
done
|
|
|
|
|
|
|
|
set -e; for MANPAGE in manpages/*.7.en; \
|
2007-09-23 08:04:47 +00:00
|
|
|
do \
|
2007-09-23 08:04:51 +00:00
|
|
|
rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \
|
2007-09-23 08:04:47 +00:00
|
|
|
done
|
|
|
|
|
2007-09-23 08:04:51 +00:00
|
|
|
set -e; for MANPAGE in manpages/*.1.de; \
|
2007-09-23 08:04:47 +00:00
|
|
|
do \
|
2007-09-23 08:04:51 +00:00
|
|
|
rm -f $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \
|
|
|
|
done
|
|
|
|
|
|
|
|
set -e; for MANPAGE in manpages/*.7.de; \
|
|
|
|
do \
|
|
|
|
rm -f $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \
|
2007-09-23 08:04:47 +00:00
|
|
|
done
|
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
clean:
|
2007-09-23 08:04:40 +00:00
|
|
|
|
2007-09-23 08:04:51 +00:00
|
|
|
distclean:
|
|
|
|
|
|
|
|
reinstall: uninstall install
|