cake
/
p7utils
Archived
1
0
Fork 0

Corrected dist target

This commit is contained in:
Thomas Touhey 2017-01-04 21:05:29 +01:00
parent 5864f1f3a9
commit 73f3b2e2c1
1 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,7 @@ clean: clean-bins clean-doc
mrproper: clean
$(call rmsg,Removing configuration.)
$(call qcmd,$(RM) Makefile.cfg)
$(call qcmd,$(RM) $(NAME)-*.tar.gz)
$(call qcmd,$(RM) $(NAME)-*)
# Remake it all
re: clean all
@ -41,9 +41,16 @@ reinstall: uninstall install
# Make dist
dist: mrproper $(if $(ISGIT),reinit-gitmodules)
$(call bcmd,mkdir,$(NAME)-$(VERSION),\
$(MD) .dist)
$(call bcmd,cp,* $(NAME)-$(VERSION),\
cp -R * .dist)
$(call qcmd,\
mv .dist $(NAME)-$(VERSION))
$(call bcmd,tarball,$(NAME)-$(VERSION),\
tar czf $(NAME)-$(VERSION).tar.gz \
--exclude .git --transform 's|^|$(NAME)-$(VERSION)/|' *)
--exclude .git $(NAME)-$(VERSION))
$(call qcmd,$(RM) -r $(NAME)-$(VERSION))
.PHONY: all mostlyclean mclean clean fclean mrproper re
.PHONY: dist install uninstall reinstall