93b3298147
What happened to v2? I HAVE NO IDEA.
36 lines
815 B
Makefile
36 lines
815 B
Makefile
V=3
|
|
|
|
PREFIX = /usr/local
|
|
|
|
BINPROGS = \
|
|
arch-chroot \
|
|
genfstab \
|
|
pacstrap
|
|
|
|
all: $(BINPROGS)
|
|
|
|
%: %.in Makefile common
|
|
@printf ' GEN\t%s\n' "$@"
|
|
@$(RM) "$@"
|
|
@m4 -P $@.in >$@
|
|
@chmod a-w "$@"
|
|
@chmod +x "$@"
|
|
|
|
clean:
|
|
$(RM) $(BINPROGS)
|
|
|
|
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-$(V)/ v$(V) | gzip -9 > arch-install-scripts-$(V).tar.gz
|
|
gpg --detach-sign --use-agent arch-install-scripts-$(V).tar.gz
|
|
|
|
.PHONY: all clean install uninstall dist
|