aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-07-03 05:08:22 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-07-03 05:08:22 -0400
commit1907d1037c2e5d98b8b55b563d7b0ce8cd4b408a (patch)
treed704c14acf3b6dd56a482dc30c730aea6eafa734 /Makefile
parentad1be39ef1dc25f2fe3a2f41a931d8e734cbeb76 (diff)
parent0d2edecb2be14c0ed92a33c7508358d648cd3d2f (diff)
Update upstream source from tag 'upstream/22'
Update to upstream version '22' with Debian dir 76cf8a8f0842846234438b4170eb5cf1a638e775
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7fa638f..4d3cdb2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VER=21
+VER=22
PREFIX = /usr/local
@@ -7,9 +7,15 @@ BINPROGS = \
genfstab \
pacstrap
+MANS = \
+ doc/arch-chroot.8 \
+ doc/genfstab.8 \
+ doc/pacstrap.8
+
BASH = bash
-all: $(BINPROGS)
+all: $(BINPROGS) man
+man: $(MANS)
V_GEN = $(_v_GEN_$(V))
_v_GEN_ = $(_v_GEN_0)
@@ -20,8 +26,11 @@ edit = $(V_GEN) m4 -P $@.in >$@ && chmod go-w,+x $@
%: %.in common
$(edit)
+doc/%: doc/%.asciidoc doc/asciidoc.conf doc/footer.asciidoc
+ $(V_GEN) a2x --no-xmllint --asciidoc-opts="-f doc/asciidoc.conf" -d manpage -f manpage -D doc $<
+
clean:
- $(RM) $(BINPROGS)
+ $(RM) $(BINPROGS) $(MANS)
check: all
@for f in $(BINPROGS); do bash -O extglob -n $$f; done
@@ -30,6 +39,12 @@ check: all
install: all
install -dm755 $(DESTDIR)$(PREFIX)/bin
install -m755 $(BINPROGS) $(DESTDIR)$(PREFIX)/bin
- install -Dm644 zsh-completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_archinstallscripts
+ install -Dm644 completion/_archinstallscripts.zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_archinstallscripts
+ cd completion; for comp in *.bash; do \
+ install -Dm644 $$comp $(DESTDIR)$(PREFIX)/share/bash-completion/completions/$${comp%%.*}; \
+ done;
+ for manfile in $(MANS); do \
+ install -Dm644 $$manfile -t $(DESTDIR)$(PREFIX)/share/man/man$${manfile##*.}; \
+ done;
.PHONY: all clean install uninstall