commit 04eef3480faffb98b87f23cf39c09f2bb3c71173
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Jul 13 17:58:49 2017 +0200
Fix generation of lyx_commit_hash.h
The code in the Makefile was incorrect.
---
src/Makefile.am | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 9bc6b19..db9a96e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -305,14 +305,14 @@ STANDALONEFILES = \
.PHONY: update_commit_hash
-LCH_V_GEN = $(lch__v_GEN_@AM_V@)
-lch__v_GEN_ = $(lch__v_GEN_@AM_DEFAULT_V@)
-lch__v_GEN_0 = @echo " GEN lyx_commit_hash.h";
-lch__v_GEN_1 =
+LCH_V_CHK = $(lch__v_CHK_@AM_V@)
+lch__v_CHK_ = $(lch__v_CHK_@AM_DEFAULT_V@)
+lch__v_CHK_0 = @echo " CHK lyx_commit_hash.h";
+lch__v_CHK_1 =
update_commit_hash:
- rm -f hash-temp \
- $(LCH_V_GEN)hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H
2>/dev/null || echo none` ; \
+ $(LCH_V_CHK)rm -f hash-temp ; \
+ hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H 2>/dev/null
|| echo none` ; \
sed s/@LYX_GIT_COMMIT_HASH@/$$hash/ "$(srcdir)"/lyx_commit_hash.h.in
>hash-temp ; \
cmp -s lyx_commit_hash.h hash-temp || cp hash-temp lyx_commit_hash.h ; \
rm -f hash-temp