[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 1380f7c488 1/2: make: Re-generate %.texi if HE
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-editor 1380f7c488 1/2: make: Re-generate %.texi if HEAD changed since previous run |
Date: |
Sat, 17 Aug 2024 16:06:58 -0400 (EDT) |
branch: elpa/with-editor
commit 1380f7c4887e4f956a648baa33d4e05c419169ce
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: Re-generate %.texi if HEAD changed since previous run
---
.gitignore | 1 +
default.mk | 1 +
docs/Makefile | 6 +++++-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index d9f1c87d2a..c2ac7de58b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
/docs/*.info
/docs/*.pdf
/docs/*.texi
+/docs/.revdesc
/docs/dir
/docs/stats/
/lisp/*-autoloads.el
diff --git a/default.mk b/default.mk
index f152f45afd..0577715daf 100644
--- a/default.mk
+++ b/default.mk
@@ -12,6 +12,7 @@ DOMAIN ?= magit.vc
CFRONT_DIST ?= E2LUHBKU1FBV02
VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut
-c2-)
+REVDESC := $(shell test -e $(TOP).git && git describe --tags)
EMACS ?= emacs
EMACS_ARGS ?=
diff --git a/docs/Makefile b/docs/Makefile
index 7a39da8682..4285014e48 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -18,7 +18,11 @@ redo-docs:
@touch $(PKG).org
@make docs
-%.texi: %.org
+.revdesc: ;
+_ := $(shell test "$(REVDESC)" = "$$(cat .revdesc 2> /dev/null)" ||\
+ echo "$(REVDESC)" > .revdesc)
+
+%.texi: %.org .revdesc
@printf "Generating $@\n"
@$(EMACS) $(ORG_ARGS) $< $(ORG_EVAL)