2008-09-07 03:39:35 +02:00
|
|
|
all:
|
|
|
|
|
2011-06-18 23:38:58 +02:00
|
|
|
install: install-program install-examples install-doc
|
|
|
|
|
|
|
|
install-program:
|
2008-09-07 03:39:35 +02:00
|
|
|
# install to sbin since script only usable by root
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 755 mkarchiso $(DESTDIR)/usr/sbin/mkarchiso
|
2008-09-07 03:39:35 +02:00
|
|
|
# testiso can be used by anyone
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 755 testiso $(DESTDIR)/usr/bin/testiso
|
2008-09-07 03:39:35 +02:00
|
|
|
# hooks/install are needed by mkinitcpio
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 644 hooks/archiso $(DESTDIR)/lib/initcpio/hooks/archiso
|
|
|
|
install -D -m 644 install/archiso $(DESTDIR)/lib/initcpio/install/archiso
|
2010-03-18 03:23:13 +01:00
|
|
|
install -D -m 644 hooks/archiso_pxe_nbd $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nbd
|
|
|
|
install -D -m 644 install/archiso_pxe_nbd $(DESTDIR)/lib/initcpio/install/archiso_pxe_nbd
|
2010-12-01 02:16:19 +01:00
|
|
|
install -D -m 644 hooks/archiso_loop_mnt $(DESTDIR)/lib/initcpio/hooks/archiso_loop_mnt
|
|
|
|
install -D -m 644 install/archiso_loop_mnt $(DESTDIR)/lib/initcpio/install/archiso_loop_mnt
|
2011-06-18 23:38:58 +02:00
|
|
|
|
|
|
|
install-examples:
|
|
|
|
# install examples
|
2010-03-21 20:42:04 +01:00
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/archiso/
|
2009-06-08 23:32:06 +02:00
|
|
|
cp -r ../configs $(DESTDIR)/usr/share/archiso/configs
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2011-06-18 23:38:58 +02:00
|
|
|
install-doc:
|
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/archiso/
|
|
|
|
install -D -m 644 ../README $(DESTDIR)/usr/share/doc/archiso/README
|
|
|
|
|
2008-09-07 03:39:35 +02:00
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)/usr/sbin/mkarchiso
|
|
|
|
rm -f $(DESTDIR)/usr/bin/testiso
|
2008-09-07 05:11:41 +02:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso
|
2010-03-18 03:23:13 +01:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nbd
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_nbd
|
2009-06-08 23:32:06 +02:00
|
|
|
rm -rf $(DESTDIR)/usr/share/archiso/
|
2011-06-18 23:38:58 +02:00
|
|
|
|
|
|
|
.PHONY: install install-program install-examples install-doc uninstall
|