-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
57 lines (46 loc) · 1.71 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
BASH_SCRIPTS = grml-debootstrap
SHELL_SCRIPTS = chroot-script
DOCBOOK_XML=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
all: doc
doc: doc_man doc_html
doc_html: html-stamp
html-stamp: grml-debootstrap.8.txt
asciidoc -b xhtml11 -a icons grml-debootstrap.8.txt
touch html-stamp
doc_man: man-stamp
man-stamp: grml-debootstrap.8.txt
asciidoc -d manpage -b docbook grml-debootstrap.8.txt
xsltproc --nonet --stringparam man.base.url.for.relative.links https://grml.org/grml-debootstrap/ \
$(DOCBOOK_XML) grml-debootstrap.8.xml
touch man-stamp
shellcheck:
@echo -n "Checking for shell syntax errors"; \
for SCRIPT in $(SHELL_SCRIPTS); do \
test -r $${SCRIPT} || continue ; \
sh -n $${SCRIPT} || exit ; \
echo -n "."; \
done; \
for SCRIPT in $(BASH_SCRIPTS) ; do \
test -r $${SCRIPT} || continue ; \
bash -n $${SCRIPT} || exit ; \
echo -n "."; \
done; \
echo " done."
install:
mkdir -p $(DESTDIR)/etc/debootstrap/
mkdir -p $(DESTDIR)/etc/debootstrap/extrapackages
mkdir -p $(DESTDIR)/usr/sbin/
mkdir -p $(DESTDIR)/usr/share/zsh/vendor-completions
install -m 644 config $(DESTDIR)/etc/debootstrap/
install -m 644 locale.gen $(DESTDIR)/etc/debootstrap/
install -m 644 packages $(DESTDIR)/etc/debootstrap/
install -m 644 packages-arm64 $(DESTDIR)/etc/debootstrap/
install -m 755 chroot-script $(DESTDIR)/etc/debootstrap/
install -m 755 grml-debootstrap $(DESTDIR)/usr/sbin/
install -m 644 zsh-completion $(DESTDIR)/usr/share/zsh/vendor-completions/_grml-debootstrap
clean:
rm -rf grml-debootstrap.8.html grml-debootstrap.8.xml grml-debootstrap.8 html-stamp man-stamp packer/local_dir/
testrun:
cd ./packer && $(MAKE) compile && $(MAKE) jessie
vagrant:
vagrant up