diff --git a/Makefile b/Makefile index 52f6075a..a7005f00 100644 --- a/Makefile +++ b/Makefile @@ -36,3 +36,12 @@ clean: $(MAKE) -C $$dir clean || exit 1; \ done -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