[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient ed4809a 2/3: make: Set VERSION
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient ed4809a 2/3: make: Set VERSION |
Date: |
Tue, 25 May 2021 07:49:43 -0400 (EDT) |
branch: externals/transient
commit ed4809afb805664df1a9916dc2b9cebbda0b096d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@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 ?=