replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / extlibs / tinycbor / tinycbor / Makefile
index 2377e37..e21b550 100644 (file)
@@ -179,15 +179,9 @@ distcheck: .git
 
 release: .git
        $(MAKE) -f $(MAKEFILE) distcheck
-ifeq ($(VERSION),)
        git -C $(SRCDIR). show HEAD:VERSION | \
          perl -l -n -e '@_ = split /\./; print "$$_[0]." . ($$_[1] + 1)' > $(SRCDIR)VERSION
-else
-       echo "$(VERSION)" > VERSION
-endif
-       if test -n "`git diff VERSION`"; then \
-         git -C $(SRCDIR). commit -s -m "Update version number" VERSION; \
-       fi
+       git -C $(SRCDIR). commit -s -m "Update version number" VERSION
        { echo "TinyCBOR release `cat $(SRCDIR)VERSION`"; \
          echo; \
          echo '# Write something nice about this release here'; \
@@ -200,6 +194,7 @@ endif
        } > $(SRCDIR).git/TAG_EDITMSG
        @`git -C $(SRCDIR). var GIT_EDITOR` $(SRCDIR).git/TAG_EDITMSG
        git -C $(SRCDIR). tag -a -F $(SRCDIR).git/TAG_EDITMSG $(GITTAGFLAGS) v`cat $(SRCDIR)VERSION`
+       $(MAKE) -f $(MAKEFILE) dist
 
 .PHONY: all check silentcheck configure install uninstall
 .PHONY: mostlyclean clean distclean