diff options
| author | 2019-07-03 05:08:20 -0400 | |
|---|---|---|
| committer | 2019-07-03 05:08:20 -0400 | |
| commit | 0d2edecb2be14c0ed92a33c7508358d648cd3d2f (patch) | |
| tree | 0d4a3d9906a7c6996d63d1eceb2df145e2a633c0 /Makefile | |
| parent | cc216920a0867905b9110ef51bf29e576364b175 (diff) | |
New upstream version 22upstream/22
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -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 |
