summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commit8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1 (patch)
tree621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /Makefile
parent4739146fc6c4de8b16418517bb882312c475195c (diff)
downloadlive-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.zip
live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.tar.gz
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile54
1 files changed, 43 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index f9a15cc..6352613 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,14 @@
#!/usr/bin/make -f
-all: install
+all: install
-install:
+test:
+ set -e; for SCRIPT in functions/* examples/*.sh helpers/* hooks/*; \
+ do \
+ sh -n $$SCRIPT; \
+ done
+
+install: test
# Installing executables
mkdir -p $(DESTDIR)/usr/bin
cp helpers/lh_* helpers/make-live $(DESTDIR)/usr/bin
@@ -16,11 +22,25 @@ install:
cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper
# Installing manpages
- mkdir -p $(DESTDIR)/usr/share/man/man1
- cp manpages/*.1 $(DESTDIR)/usr/share/man/man1
+ 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
- mkdir -p $(DESTDIR)/usr/share/man/man7
- cp manpages/*.7 $(DESTDIR)/usr/share/man/man7
+ set -e; for MANPAGE in manpages/*.7.de; \
+ do \
+ install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \
+ done
uninstall:
# Uninstalling executables
@@ -36,16 +56,28 @@ uninstall:
rm -rf $(DESTDIR)/usr/share/doc/live-helper
# Uninstalling manpages
- for MANPAGE in manpages/*.1; \
+ 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; \
do \
- rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE`; \
+ rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \
done
- for MANPAGE in manpages/*.7; \
+ set -e; for MANPAGE in manpages/*.1.de; \
do \
- rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE`; \
+ 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`; \
done
clean:
-reinstall: uninstall install
+distclean:
+
+reinstall: uninstall install