Replacing live-boot initscript with a stub and moving the actual code to /lib/live...
[live-boot-grml.git] / Makefile
index ec67501..ce0262b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,9 @@ build:
 
 install:
        # Installing executables
+       mkdir -p $(DESTDIR)/lib/live
+       cp bin/boot.sh $(DESTDIR)/lib/live
+
        mkdir -p $(DESTDIR)/sbin
        cp bin/live-new-uuid bin/live-snapshot bin/live-swapfile $(DESTDIR)/sbin
 
@@ -77,6 +80,10 @@ install:
 
 uninstall:
        # Uninstalling executables
+       rm -f $(DESTDIR)/lib/live/boot.sh
+       rmdir --ignore-fail-on-non-empty $(DESTDIR)/lib/live > /dev/null 2>&1 || true
+       rmdir --ignore-fail-on-non-empty $(DESTDIR)/lib > /dev/null 2>&1 || true
+
        rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile
        rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin > /dev/null 2>&1 || true