Makefile 1.16 KB
Newer Older
Gerardo Exequiel Pozzi's avatar
Gerardo Exequiel Pozzi committed
1
V=34
2

3
4
5
6
7
8
9
10
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

11
12
13
14
15
DOC_FILES=$(wildcard docs/*)

DOC_DIR=$(DESTDIR)/usr/share/doc/archiso


16
17
all:

18
install: install-program install-initcpio install-examples install-doc
19
20

install-program:
21
	install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/bin/mkarchiso
22

23
24
25
26
27
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)
28
29
30

install-examples:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
31
	cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/archiso/
32
33

install-doc:
34
35
	install -d $(DOC_DIR)
	install -m 644 -t $(DOC_DIR) $(DOC_FILES)
36
37
38
39
40

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

41
.PHONY: install install-program install-initcpio install-examples install-doc dist