summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-06 09:42:21 (GMT)
committerGeorg Brandl <georg@python.org>2011-03-06 09:42:21 (GMT)
commit3a5508e2c075405f35b5c32f413445b9e875c92c (patch)
tree784515c9e36589fddb6311168278ff332a5cd92c /Makefile.pre.in
parent93512f24f1374ef83ac3cca21881b4eea5173781 (diff)
downloadcpython-3a5508e2c075405f35b5c32f413445b9e875c92c.zip
cpython-3a5508e2c075405f35b5c32f413445b9e875c92c.tar.gz
cpython-3a5508e2c075405f35b5c32f413445b9e875c92c.tar.bz2
Port build identification from default branch.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 6998eee..d385db2 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -35,6 +35,9 @@ LINKCC= @LINKCC@
AR= @AR@
RANLIB= @RANLIB@
SVNVERSION= @SVNVERSION@
+HGVERSION= @HGVERSION@
+HGTAG= @HGTAG@
+HGBRANCH= @HGBRANCH@
GNULD= @GNULD@
@@ -522,7 +525,12 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
$(SIGNAL_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
- $(CC) -c $(PY_CFLAGS) -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" -o $@ $(srcdir)/Modules/getbuildinfo.c
+ $(CC) -c $(PY_CFLAGS) \
+ -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" \
+ -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \
+ -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \
+ -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \
+ -o $@ $(srcdir)/Modules/getbuildinfo.c
Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
$(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \