summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-06 12:58:17 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-06 12:58:17 (GMT)
commit2a3e396b247e8519b8f8a7c9d68f418a0fe0a306 (patch)
tree0a2e5e07d075dbbf084f40eda5db2bb061ba6859 /Makefile.pre.in
parentf6d6dc2e360d10435734a192e9de370479260eb6 (diff)
downloadcpython-2a3e396b247e8519b8f8a7c9d68f418a0fe0a306.zip
cpython-2a3e396b247e8519b8f8a7c9d68f418a0fe0a306.tar.gz
cpython-2a3e396b247e8519b8f8a7c9d68f418a0fe0a306.tar.bz2
Closes #21480: better explanation of "hg touch" in the Makefile.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 629835d..70db601 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -336,7 +336,8 @@ AST_C= $(AST_C_DIR)/Python-ast.c
AST_ASDL= $(srcdir)/Parser/Python.asdl
ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
-# XXX Note that a build now requires Python exist before the build starts
+# Note that a build now requires Python to exist before the build starts.
+# Use "hg touch" to fix up screwed up file mtimes in a checkout.
ASDLGEN= @ASDLGEN@ $(srcdir)/Parser/asdl_c.py
##########################################################################
@@ -1500,7 +1501,10 @@ TAGS::
etags Include/*.h; \
for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
-# Touch generated files
+# This fixes up the mtimes of checked-in generated files, assuming that they
+# only *appear* to be outdated because of checkout order.
+# This is run while preparing a source release tarball, and can be run manually
+# to avoid bootstrap issues.
touch:
cd $(srcdir); \
hg --config extensions.touch=Tools/hg/hgtouch.py touch -v