Skip to content

Commit e7bcedb

Browse files
committed
Adding "make tags"
1 parent a212407 commit e7bcedb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SCREEN_WIDTH := 100
2121
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
2222
CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MAKEFILE_PATH))))
2323
PATH := $(shell echo "$(HOME)/.rbenv/shims:$(PATH)")
24+
RULES_VERSION := $(shell cat .rules_version)
2425

2526
help: ## Prints help message auto-generated from the comments.
2627
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -43,3 +44,7 @@ update-readme: ## Generate the PDF version of the README
4344
@open README.pdf
4445

4546

47+
tag: ## Tag this commit with .rules_version and push to remote
48+
@git tag "v$(RULES_VERSION)" -f
49+
@git push --tags -f
50+

0 commit comments

Comments
 (0)