summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-03-04 11:16:34 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-03-04 11:16:34 +0000
commit44274c5c125d614b168254dc1cbe67f5db7aaa88 (patch)
tree682a24731dea8fd2f34ffdb3fd8c921122a97542 /Build/source/texk/web2c/uptexdir
parent6c97d4d28985331f4334de516193e53f639d9c69 (diff)
texk/web2c: Better rules for *tex_version.h
git-svn-id: svn://tug.org/texlive/trunk@29286 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/uptexdir')
-rw-r--r--Build/source/texk/web2c/uptexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/uptexdir/am/uptex.am5
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/uptexdir/ChangeLog b/Build/source/texk/web2c/uptexdir/ChangeLog
index 4a48408a7aa..cdb54e86651 100644
--- a/Build/source/texk/web2c/uptexdir/ChangeLog
+++ b/Build/source/texk/web2c/uptexdir/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * am/uptex.am: Better rule for uptex_version.h.
+
2013-02-15 Peter Breitenlohner <peb@mppmu.mpg.de>
* am/uptex.am, upbibtex.test, updvitype.test, uppltotf.test,
diff --git a/Build/source/texk/web2c/uptexdir/am/uptex.am b/Build/source/texk/web2c/uptexdir/am/uptex.am
index e7b4de8b3cb..1304472e115 100644
--- a/Build/source/texk/web2c/uptexdir/am/uptex.am
+++ b/Build/source/texk/web2c/uptexdir/am/uptex.am
@@ -68,10 +68,11 @@ uptex-tangle: tangle$(EXEEXT) uptex.web uptex.ch tangle-sh
@$(texmf_tangle) uptex uptex
# Extract uptex version
-uptexdir/uptex_version.h: uptexdir/uptex-m.ch
- $(AM_V_at)$(MKDIR_P) uptexdir
+$(srcdir)/uptexdir/uptex_version.h: uptexdir/uptex-m.ch
+if MAINTAINER_MODE
$(AM_V_GEN)grep '^@d upTeX_version_string==' $(srcdir)/uptexdir/uptex-m.ch \
| sed "s/^.*'-/#define UPTEX_VERSION \"/;s/'.*$$/\"/" >$@
+endif MAINTAINER_MODE
# Generate uptex.web
uptex.web: tie$(EXEEXT) $(uptex_web_srcs)