[Python-checkins] r84068 - in python/branches/py3k: Makefile.pre.in Misc/NEWS
martin.v.loewis
python-checkins at python.org
Sun Aug 15 17:47:25 CEST 2010
Author: martin.v.loewis
Date: Sun Aug 15 17:47:25 2010
New Revision: 84068
Log:
Don't run pgen twice when using make -j.
Modified:
python/branches/py3k/Makefile.pre.in
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Makefile.pre.in
==============================================================================
--- python/branches/py3k/Makefile.pre.in (original)
+++ python/branches/py3k/Makefile.pre.in Sun Aug 15 17:47:25 2010
@@ -561,9 +561,12 @@
$(IO_OBJS): $(IO_H)
-$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
+# Use a stamp file to prevent make -j invoking pgen twice
+$(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
+Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
-@$(INSTALL) -d Include
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
+ -touch Parser/pgen.stamp
$(PGEN): $(PGENOBJS)
$(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
@@ -1197,7 +1200,7 @@
clobber: clean profile-removal
-rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
- tags TAGS \
+ tags TAGS Parser/pgen.stamp \
config.cache config.log pyconfig.h Modules/config.c
-rm -rf build platform
-rm -rf $(PYTHONFRAMEWORKDIR)
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sun Aug 15 17:47:25 2010
@@ -215,6 +215,11 @@
- Issue #8687: provide a test suite for sched.py module.
+Build
+-----
+
+- Don't run pgen twice when using make -j.
+
What's New in Python 3.2 Alpha 1?
=================================
More information about the Python-checkins
mailing list