summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-02-27 02:19:16 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-02-27 02:19:16 (GMT)
commit7cd124c7d201c30691ab0ce8d982c4756ddf70be (patch)
tree29cf341c736791d78c8963bbb1d1c2795eb3ad19
parentacbf9ef784226081b4960a9455050d494ddafaf5 (diff)
downloadcpython-7cd124c7d201c30691ab0ce8d982c4756ddf70be.zip
cpython-7cd124c7d201c30691ab0ce8d982c4756ddf70be.tar.gz
cpython-7cd124c7d201c30691ab0ce8d982c4756ddf70be.tar.bz2
Generate grammar source files in srcdir. Ignore the error if they cannot
be created (perhaps the source directory is read-only).
-rw-r--r--Makefile.pre.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 08ba3e1..872f746 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -157,8 +157,8 @@ SIGNAL_OBJS= @SIGNAL_OBJS@
##########################################################################
# Grammar
-GRAMMAR_H= Include/graminit.h
-GRAMMAR_C= Python/graminit.c
+GRAMMAR_H= $(srcdir)/Include/graminit.h
+GRAMMAR_C= $(srcdir)/Python/graminit.c
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
@@ -379,7 +379,7 @@ Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
+ -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
$(PGEN): $(PGENOBJS)
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)