on master help sign in
Small makefile change
commitc80d2d294573210b03688978798a03fb4eab7458 authorDeni Bertovic <deni@denibertovic.com> dateMon 20 Mar 2017, 14:45 (10 years ago) parent7c41fe6
1 file changed+6−2
Makefile+6−2
Makefile+6−2
@@ -1,4 +1,4 @@
1−.PHONY: build repl test release
1+.PHONY: build repl test release tag
22
33PROJECT_NAME ?= $(shell grep "^name" docker.cabal | cut -d " " -f17)
44VERSION ?= $(shell grep "^version:" docker.cabal | cut -d " " -f14)
@@ -15,7 +15,11 @@ repl:
1515test:
1616 @stack test
1717
18−release:
18+tag:
19+ @echo Tagging version: ${VERSION}
20+ @git tag ${VERSION}
21+
22+release: tag
1923 @stack build --haddock
2024 @stack sdist
2125 @echo "\n\nDone. Now run: \n\nstack upload <path_to_tarball>\n"