Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-08-03 22:35:08 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-08-03 22:36:22 +0200
commit4a33b67542ac9bc6343f9d0fef4af70afe0ea107 (patch)
tree8ccb0e4063f9d00c1393a89b433615a1cca55941 /Makefile
parentda15f859af776ad77a53d857a7fa0d4478bb6d0f (diff)
Move Makefile to project root to avoid issues with git archive
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64d6bbb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,63 @@
+V=1
+
+all:
+
+install: install-program install-hooks install-examples install-doc
+
+install-program:
+ install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/sbin/mkarchiso
+
+install-hooks:
+ # hooks/install are needed by mkinitcpio
+ install -D -m 644 archiso/hooks/archiso $(DESTDIR)/usr/lib/initcpio/hooks/archiso
+ install -D -m 644 archiso/install/archiso $(DESTDIR)/usr/lib/initcpio/install/archiso
+ install -D -m 755 archiso/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
+ install -D -m 644 archiso/hooks/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
+ install -D -m 644 archiso/install/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
+ install -D -m 644 archiso/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
+ install -D -m 644 archiso/hooks/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
+ install -D -m 644 archiso/install/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
+ install -D -m 644 archiso/hooks/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
+ install -D -m 644 archiso/install/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
+ install -D -m 644 archiso/hooks/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
+ install -D -m 644 archiso/install/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
+ install -D -m 644 archiso/hooks/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
+ install -D -m 644 archiso/install/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
+ install -D -m 644 archiso/hooks/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
+ install -D -m 644 archiso/install/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
+ install -D -m 644 archiso/install/archiso_kms $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
+
+install-examples:
+ install -d -m 755 $(DESTDIR)/usr/share/archiso/
+ cp -r configs $(DESTDIR)/usr/share/archiso/
+
+install-doc:
+ install -d -m 755 $(DESTDIR)/usr/share/archiso/
+ install -D -m 644 README $(DESTDIR)/usr/share/doc/archiso/README
+
+uninstall:
+ rm -f $(DESTDIR)/usr/sbin/mkarchiso
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso
+ rm -f $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
+ rm -f $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
+ rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
+ rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
+ rm -rf $(DESTDIR)/usr/share/archiso/
+
+dist:
+ git archive --format=tar --prefix=archiso-$(V)/ v$(V) | gzip -9 > archiso-$(V).tar.gz
+ gpg --detach-sign --use-agent archiso-$(V).tar.gz
+
+.PHONY: install install-program install-hooks install-examples install-doc uninstall dist