Add dist function to Makefile

This dist function creates a tar archive of a tag.

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Pierre Schmitz 2012-07-31 19:52:09 -03:00 committed by Gerardo Exequiel Pozzi
parent d2394aa2b9
commit 281234509f

View File

@ -1,3 +1,5 @@
V=1
all: all:
install: install-program install-hooks install-examples install-doc install: install-program install-hooks install-examples install-doc
@ -54,4 +56,8 @@ uninstall:
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
rm -rf $(DESTDIR)/usr/share/archiso/ rm -rf $(DESTDIR)/usr/share/archiso/
.PHONY: install install-program install-hooks install-examples install-doc uninstall dist:
git archive --format=tar --prefix=archiso-$(V)/ v$(V) | gzip -9 > archiso-$(V).tar.gz
gpg --detach-sign --use-agent archiso-$(V).tar.gz
.PHONY: install install-program install-hooks install-examples install-doc uninstall dist