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"
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
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