forked from Antergos/antergos-iso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (23 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
V=3
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
all:
install: install-program install-initcpio install-examples
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/antergos-iso/
cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/antergos-iso/
dist:
git archive --format=tar --prefix=antergos-iso-$(V)/ v$(V) | gzip -9 > antergos-iso-$(V).tar.gz
gpg --detach-sign --use-agent antergos-iso-$(V).tar.gz
.PHONY: install install-program install-initcpio install-examples dist