X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=082bf1e45590b257e906c579eb7de7bd365eb529;hb=4574758abec5d6f661742567c14a89c240ccd0b3;hp=9d03254fbfdc5b5f246e5693ad5f9d2f5aec738c;hpb=8775227a9da3328eb25528b24cb1392995bbe16e;p=live-boot-grml.git diff --git a/Makefile b/Makefile index 9d03254..082bf1e 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 @@ -31,7 +31,7 @@ test: echo " done."; \ else \ echo "W: checkbashisms - command not found"; \ - echo "I: checkbashisms can be optained from: "; \ + echo "I: checkbashisms can be obtained from: "; \ echo "I: http://git.debian.org/?p=devscripts/devscripts.git"; \ echo "I: On Debian based systems, checkbashisms can be installed with:"; \ echo "I: apt-get install devscripts"; \ @@ -41,15 +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 + 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 backends/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 @@ -73,8 +80,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