X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=46de2695e30b639d76283f6662fd6ea803449399;hb=ebdefd9601c017c5a7264a94cee2c7af914bca76;hp=d4aea5128602ec7b9426efe803db41b28bfa49c1;hpb=78af1b048b68521180e6bd1571bbc986cb52036c;p=live-boot-grml.git diff --git a/Makefile b/Makefile index d4aea51..46de269 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ SHELL := sh -e -LANGUAGES = de +LANGUAGES = en $(shell cd manpages/po && ls) SCRIPTS = bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/* -all: test build +all: build test: @echo -n "Checking for syntax errors" @@ -42,11 +42,8 @@ build: install: # Installing executables - mkdir -p $(DESTDIR)/bin - cp bin/live-system $(DESTDIR)/bin - mkdir -p $(DESTDIR)/sbin - cp bin/live-new-uuid bin/live-snapshot bin/live-swapfile bin/live-toram $(DESTDIR)/sbin + cp bin/live-new-uuid bin/live-snapshot bin/live-swapfile $(DESTDIR)/sbin mkdir -p $(DESTDIR)/usr/share/live-boot cp bin/live-preseed bin/live-reconfigure local/languagelist $(DESTDIR)/usr/share/live-boot @@ -69,18 +66,9 @@ install: install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${MANPAGE}); \ done - for LANGUAGE in $(LANGUAGES); \ - do \ - for MANPAGE in manpages/$${LANGUAGE}/*; \ - do \ - SECTION="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \ - install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \ - done; \ - done - uninstall: # Uninstalling executables - rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile $(DESTDIR)/bin/live-system $(DESTDIR)/sbin/live-toram + rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin rm -rf $(DESTDIR)/usr/share/live-boot