From 8966351b12bbcf2f8fffbd8c3a4b00e7529349b8 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sat, 6 Sep 2008 20:39:35 -0500 Subject: Split mkarchiso and configs into logical parts Signed-off-by: Aaron Griffin --- archiso/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 archiso/Makefile (limited to 'archiso/Makefile') diff --git a/archiso/Makefile b/archiso/Makefile new file mode 100644 index 0000000..72abd11 --- /dev/null +++ b/archiso/Makefile @@ -0,0 +1,20 @@ +all: + +install: all + # install to sbin since script only usable by root + mkdir -p $(DESTDIR)/usr/sbin + install -m 755 mkarchiso $(DESTDIR)/usr/sbin + install -m 755 mkusbimg $(DESTDIR)/usr/sbin + # testiso can be used by anyone + mkdir -p $(DESTDIR)/usr/bin + install -m 755 testiso $(DESTDIR)/usr/bin + # hooks/install are needed by mkinitcpio + mkdir -p $(DESTDIR)/lib/initcpio/{hooks,install} + install -m 644 hooks/{archiso,boot-cd,boot-usb} $(DESTDIR)/lib/initcpio/hooks/ + install -m 644 install/{archiso,boot-cd,boot-usb} $(DESTDIR)/lib/initcpio/install/ + +uninstall: + rm -f $(DESTDIR)/usr/sbin/mkarchiso + rm -f $(DESTDIR)/usr/bin/testiso + rm -f $(DESTDIR)/lib/initcpio/hooks/{archiso,boot-cd,boot-usb} + rm -f $(DESTDIR)/lib/initcpio/install/{archiso,boot-cd,boot-usb} -- cgit v1.2.3-70-g09d2