summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-09-05 11:47:22 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-09-05 11:47:22 (GMT)
commita326ab2c9f34a3f5005cbbbc85f81ecf5d51c615 (patch)
tree16d1e13224768d93015c73ca26e7909be8da8142 /Makefile.pre.in
parent5cb86a246164c52176b398be481ab641fab97e1e (diff)
downloadcpython-a326ab2c9f34a3f5005cbbbc85f81ecf5d51c615.zip
cpython-a326ab2c9f34a3f5005cbbbc85f81ecf5d51c615.tar.gz
cpython-a326ab2c9f34a3f5005cbbbc85f81ecf5d51c615.tar.bz2
Patch #786737: Allow building in a tree of symlinks pointing to
a readonly source.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index d2250bb..078f2d9 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -61,7 +61,7 @@ CFLAGS= $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
# be able to build extension modules using the directories specified in the
# environment variables
-CPPFLAGS= -I. -I$(srcdir)/Include @CPPFLAGS@
+CPPFLAGS= -I. -IInclude -I$(srcdir)/Include @CPPFLAGS@
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
@@ -470,6 +470,7 @@ Modules/python.o: $(srcdir)/Modules/python.c
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
+ -@ mkdir Include
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
$(PGEN): $(PGENOBJS)