branch: externals/transient commit ed4809afb805664df1a9916dc2b9cebbda0b096d Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
make: Set VERSION Otherwise it would have to be set explicitly when running "make release". --- Makefile | 2 +- default.mk | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6338f07..15d6d14 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ publish: @$(MAKE) -C docs publish release: - @$(MAKE) -C docs release + @$(MAKE) VERSION=$(VERSION) -C docs release bump-version: @printf "Setting version in transient.el to $(VERSION)\n" diff --git a/default.mk b/default.mk index 02a1016..28e03dc 100644 --- a/default.mk +++ b/default.mk @@ -5,6 +5,8 @@ ELCS = $(ELS:.el=.elc) DEPS = dash +VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut -c2-) + EMACS ?= emacs EMACS_ARGS ?=