base-install-scripts/Makefile

36 lines
688 B
Makefile
Raw Normal View History

2018-10-16 10:00:35 -07:00
VER=20
PREFIX = /usr/local
2012-06-18 10:06:17 -07:00
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 $@
2012-12-12 06:04:45 -08:00
%: %.in common
$(edit)
clean:
2012-06-18 10:06:17 -07:00
$(RM) $(BINPROGS)
check: all
2013-12-08 09:16:58 -08:00
@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
2012-06-18 10:06:17 -07:00
install -dm755 $(DESTDIR)$(PREFIX)/bin
install -m755 $(BINPROGS) $(DESTDIR)$(PREFIX)/bin
2012-07-22 19:37:14 -07:00
install -Dm644 zsh-completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_archinstallscripts
.PHONY: all clean install uninstall