summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-04-19 21:28:33 +0200
committerJonas Bernoulli <jonas@bernoul.li>2021-04-19 21:28:33 +0200
commit39c536eab6c9a2e82ae7f1e174782560415cd6a0 (patch)
treefb2cc364dced64a9547959110a39215f0e6d6fc0
parentcc16a5eaa73617a281b0bbf71b24432c38994e30 (diff)
make: Add bump-version target
Make "texi" depend on it, which (while not "correct") ensures that it is run, even when I forget to do so.
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d04e13..6338f07 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ lisp:
docs:
@$(MAKE) -C docs docs
-texi:
+texi: bump-version
@$(MAKE) -C docs texi
info:
@@ -46,6 +46,11 @@ publish:
release:
@$(MAKE) -C docs release
+bump-version:
+ @printf "Setting version in transient.el to $(VERSION)\n"
+ @test -n "$(VERSION)" || (echo "Version not specified"; false)
+ @sed -i -e "/Package-Version:/s|[0-9.]\+|$(VERSION)|" lisp/transient.el
+
clean:
@printf "Cleaning...\n"
@$(MAKE) -C lisp clean