Skip to content

Commit

Permalink
added Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Jul 21, 2020
1 parent 5750977 commit e231520
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VERSION=

check-version:
ifndef VERSION
$(error VERSION is not set)
endif

check-master:
ifneq ($(shell git rev-parse --abbrev-ref HEAD),master)
$(error Not on branch master)
endif

release: check-version check-master
git tag v${VERSION} && \
git push origin v${VERSION}

0 comments on commit e231520

Please sign in to comment.