Add a "make release" target

Release steps:
 1) run distcheck
 2) update the version number && commit it
 3) create a new tag
 4) create the release files

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Thiago Macieira
2015-09-16 12:11:20 -07:00
parent cd724957e1
commit 07716ef9a0
+9 -1
View File
@@ -136,9 +136,17 @@ distcheck: .git
cd $$TMPDIR/tinycbor-distcheck && $(MAKE) silentcheck
$(RM) -r $$TMPDIR/tinycbor-distcheck
release: .git
$(MAKE) -f $(MAKEFILE) distcheck
git -C $(SRCDIR) show HEAD:VERSION | \
perl -l -n -e '@_ = split /\./; print "$$_[0]." . ($$_[1] + 1)' > $(SRCDIR)VERSION
git -C $(SRCDIR) commit -s -m "Update version number" VERSION
v=v`cat $(SRCDIR)VERSION` && git -C $(SRCDIR) tag -a -m "TinyCBOR release $$v" $(GITTAGFLAGS) $$v
$(MAKE) -f $(MAKEFILE) dist
.PHONY: all check silentcheck install uninstall
.PHONY: mostlyclean clean distclean
.PHONY: dist distcheck
.PHONY: dist distcheck release
.SECONDARY:
cflags := $(CPPFLAGS) -I$(SRCDIR)src