Makefile: added dist target to create distribution source tarball.

This commit is contained in:
Juan RP 2010-10-23 18:08:33 +02:00
parent f1c24cebfa
commit 05c841ee9e

View File

@ -36,3 +36,12 @@ clean:
$(MAKE) -C $$dir clean || exit 1; \ $(MAKE) -C $$dir clean || exit 1; \
done done
-rm -f config.h config.mk -rm -f config.h config.mk
dist:
ifndef REV
@echo "Please specify revision/tag with REV, i.e:"
@echo " > make REV=0.6.1 dist"
@exit 1
endif
@echo "Building distribution tarball for revision/tag: $(REV) ..."
-@hg archive --rev $(REV) --type tgz ~/xbps-$(REV).tar.gz