X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=7be7e682102bd0ab8ec029ac9762b33be0d804dc;hb=aea94ce0f7e2cad51a56121ac639a06235c49a58;hp=28709cc2c78870643c0300f3c62132155b3eccb9;hpb=0aa07bd386f516176364e710e8b9132036c72986;p=live-boot-grml.git diff --git a/Makefile b/Makefile index 28709cc..7be7e68 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SHELL := sh -e LANGUAGES = $(shell cd manpages/po && ls) -SCRIPTS = backend/*/* frontend/* scripts/*/*-* +SCRIPTS = backend/*/* frontend/* components/* all: build @@ -41,22 +41,26 @@ build: @echo "Nothing to build." install: - # Installing scripts - mkdir -p $(DESTDIR)/lib/live - cp 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 backend/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live + for f in backend/initramfs-tools/*.hook; do \ + cp $${f} $(DESTDIR)/usr/share/initramfs-tools/hooks/$$(basename $${f} .hook); \ + done mkdir -p $(DESTDIR)/usr/share/initramfs-tools/scripts - cp backend/initramfs-tools/live.script $(DESTDIR)/usr/share/initramfs-tools/scripts/live + for f in backend/initramfs-tools/*.script; do \ + cp $${f} $(DESTDIR)/usr/share/initramfs-tools/scripts/$$(basename $${f} .script); \ + done 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/*; \ @@ -90,7 +94,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