Corrected dist target
This commit is contained in:
parent
5864f1f3a9
commit
73f3b2e2c1
11
Makefile
11
Makefile
|
@ -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
|
||||
|
|
Reference in New Issue