Create dist folder when building src release.

This commit is contained in:
Steve 2015-11-01 16:12:13 +00:00
parent ee05399652
commit d5fc20c673
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ dist:
mkdir $(PROG)-$(VERSION) mkdir $(PROG)-$(VERSION)
cp -r $(DIST_FILES) $(PROG)-$(VERSION) cp -r $(DIST_FILES) $(PROG)-$(VERSION)
git log --oneline master..v$(VERSION) >$(PROG)-$(VERSION)/CHANGELOG git log --oneline master..v$(VERSION) >$(PROG)-$(VERSION)/CHANGELOG
tar czf $(PROG)-$(VERSION).tar.gz $(PROG)-$(VERSION) tar czf $(PROG)-$(VERSION)-src.tar.gz $(PROG)-$(VERSION)
mkdir dist
mv $(PROG)-$(VERSION)-src.tar.gz dist
$(RM) -rf $(PROG)-$(VERSION) $(RM) -rf $(PROG)-$(VERSION)
# cleaning everything that can be automatically recreated with "make". # cleaning everything that can be automatically recreated with "make".