X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=39f829df8ee1560162bda359568b560fe12cf60b;hb=09ec20c633809d651f2caa119f0e14ec472ded77;hp=d08302751c9505055d23237ad91fef02e04edc87;hpb=9527df9780af4629c34ffc2dea5a26e2886bb268;p=live-boot-grml.git diff --git a/Makefile b/Makefile index d083027..39f829d 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SHELL := sh -e LANGUAGES = $(shell cd manpages/po && ls) -SCRIPTS = backends/*/* bin/* scripts/*.sh scripts/*/*-* +SCRIPTS = backend/*/* frontend/* components/* all: build @@ -41,19 +41,22 @@ build: @echo "Nothing to build." install: - # Installing scripts - mkdir -p $(DESTDIR)/lib/live - cp -r scripts/boot.sh scripts/boot $(DESTDIR)/lib/live + # Installing components + mkdir -p $(DESTDIR)/lib/live/boot + cp components/* $(DESTDIR)/lib/live/boot # Installing executables mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks - cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live + cp backend/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live mkdir -p $(DESTDIR)/usr/share/initramfs-tools/scripts - cp backends/initramfs-tools/live.script $(DESTDIR)/usr/share/initramfs-tools/scripts/live + cp backend/initramfs-tools/live.script $(DESTDIR)/usr/share/initramfs-tools/scripts/live + + mkdir -p $(DESTDIR)/bin + cp frontend/* $(DESTDIR)/bin # Installing docs - mkdir -p $(DESTDIR)/usr/share/doc/live-boot - cp -r COPYING $(DESTDIR)/usr/share/doc/live-boot + mkdir -p $(DESTDIR)/usr/share/doc/live-boot-grml + cp -r COPYING $(DESTDIR)/usr/share/doc/live-boot-grml # Installing manpages for MANPAGE in manpages/en/*; \ @@ -73,8 +76,9 @@ install: uninstall: # Uninstalling executables - rm -f $(DESTDIR)/sbin/live-swapfile - rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin > /dev/null 2>&1 || true + rm -f $(DESTDIR)/bin/live-boot + rm -f $(DESTDIR)/bin/live-swapfile + rmdir --ignore-fail-on-non-empty $(DESTDIR)/bin > /dev/null 2>&1 || true rm -f $(DESTDIR)/usr/share/initramfs-tools/hooks/live rm -f $(DESTDIR)/usr/share/initramfs-tools/scripts/live @@ -86,7 +90,7 @@ uninstall: rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr > /dev/null 2>&1 || true # 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 > /dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share > /dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr > /dev/null 2>&1 || true