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)/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
+ mkdir -p $(DESTDIR)/usr/share/live-boot-grml
+ cp bin/live-preseed bin/live-reconfigure local/languagelist $(DESTDIR)/usr/share/live-boot-grml
mkdir -p $(DESTDIR)/usr/share/initramfs-tools
cp -r hooks scripts $(DESTDIR)/usr/share/initramfs-tools
# Installing docs
- mkdir -p $(DESTDIR)/usr/share/doc/live-boot
- cp -r COPYING docs/* $(DESTDIR)/usr/share/doc/live-boot
+ mkdir -p $(DESTDIR)/usr/share/doc/live-boot-grml
+ cp -r COPYING docs/* $(DESTDIR)/usr/share/doc/live-boot-grml
- mkdir -p $(DESTDIR)/usr/share/doc/live-boot/examples
- cp -r etc/* $(DESTDIR)/usr/share/doc/live-boot/examples
+ mkdir -p $(DESTDIR)/usr/share/doc/live-boot-grml/examples
+ cp -r etc/* $(DESTDIR)/usr/share/doc/live-boot-grml/examples
# (FIXME)
# Installing manpages
uninstall:
# Uninstalling executables
- rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile $(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
+ rm -rf $(DESTDIR)/usr/share/live-boot-grml
rm -f $(DESTDIR)/usr/share/initramfs-tools/hooks/live
rm -rf $(DESTDIR)/usr/share/initramfs-tools/scripts/live*
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr
# Uninstalling docs
- rm -rf $(DESTDIR)/usr/share/doc/live-boot
+ rm -rf $(DESTDIR)/usr/share/doc/live-boot-grml
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/doc
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr