summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-09-05 11:47:34 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-09-05 11:47:34 (GMT)
commitd44a4e971918e9e8367f4469f43c6d429f11bdb2 (patch)
treecb49d5938b3c231f3255989fdd5f8a8ceca571be /Makefile.pre.in
parent362bb5150352603394aacc1d7d0592938962fe92 (diff)
downloadcpython-d44a4e971918e9e8367f4469f43c6d429f11bdb2.zip
cpython-d44a4e971918e9e8367f4469f43c6d429f11bdb2.tar.gz
cpython-d44a4e971918e9e8367f4469f43c6d429f11bdb2.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 f9415aa..bafeb2b 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@
@@ -471,6 +471,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)