diff options
| author | 2018-03-20 22:56:16 -0400 | |
|---|---|---|
| committer | 2018-03-20 22:56:16 -0400 | |
| commit | d929c8cbc09732337fb4805accbf3564e9cca0bb (patch) | |
| tree | 27f71b63f26cdf0ef957ce2d7390f5991561b839 /Makefile | |
Import Upstream version 18upstream/18
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6824f3f --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +VER=18 + +PREFIX = /usr/local + +BINPROGS = \ + arch-chroot \ + genfstab \ + pacstrap + +BASH = bash + +all: $(BINPROGS) + +V_GEN = $(_v_GEN_$(V)) +_v_GEN_ = $(_v_GEN_0) +_v_GEN_0 = @echo " GEN " $@; + +edit = $(V_GEN) m4 -P $@.in >$@ && chmod go-w,+x $@ + +%: %.in common + $(edit) + +clean: + $(RM) $(BINPROGS) + +check: all + @for f in $(BINPROGS); do bash -O extglob -n $$f; done + @r=0; for t in test/test_*; do $(BASH) $$t || { echo $$t fail; r=1; }; done; exit $$r + +install: all + install -dm755 $(DESTDIR)$(PREFIX)/bin + install -m755 $(BINPROGS) $(DESTDIR)$(PREFIX)/bin + install -Dm644 zsh-completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_archinstallscripts + +uninstall: + for f in $(BINPROGS); do $(RM) $(DESTDIR)$(PREFIX)/bin/$$f; done + $(RM) $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_archinstallscripts + +dist: + git archive --format=tar --prefix=arch-install-scripts-$(VER)/ v$(VER) | gzip -9 > arch-install-scripts-$(VER).tar.gz + gpg --detach-sign --use-agent arch-install-scripts-$(VER).tar.gz + +.PHONY: all clean install uninstall dist |
