summaryrefslogtreecommitdiffstats
path: root/build_tools/archiso-19/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/archiso-19/Makefile')
-rw-r--r--build_tools/archiso-19/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/build_tools/archiso-19/Makefile b/build_tools/archiso-19/Makefile
new file mode 100644
index 0000000..4064b90
--- /dev/null
+++ b/build_tools/archiso-19/Makefile
@@ -0,0 +1,41 @@
+V=19
+
+INSTALL_FILES=$(wildcard archiso/initcpio/install/*)
+HOOKS_FILES=$(wildcard archiso/initcpio/hooks/*)
+SCRIPT_FILES=$(wildcard archiso/initcpio/script/*)
+
+INSTALL_DIR=$(DESTDIR)/usr/lib/initcpio/install
+HOOKS_DIR=$(DESTDIR)/usr/lib/initcpio/hooks
+SCRIPT_DIR=$(DESTDIR)/usr/lib/initcpio
+
+DOC_FILES=$(wildcard docs/*)
+
+DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
+
+
+all:
+
+install: install-program install-initcpio install-examples install-doc
+
+install-program:
+ install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/bin/mkarchiso
+
+install-initcpio:
+ install -d $(SCRIPT_DIR) $(HOOKS_DIR) $(INSTALL_DIR)
+ install -m 755 -t $(SCRIPT_DIR) $(SCRIPT_FILES)
+ install -m 644 -t $(HOOKS_DIR) $(HOOKS_FILES)
+ install -m 644 -t $(INSTALL_DIR) $(INSTALL_FILES)
+
+install-examples:
+ install -d -m 755 $(DESTDIR)/usr/share/archiso/
+ cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/archiso/
+
+install-doc:
+ install -d $(DOC_DIR)
+ install -m 644 -t $(DOC_DIR) $(DOC_FILES)
+
+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-initcpio install-examples install-doc dist