Generate grammar source files in srcdir. Ignore the error if they cannot
be created (perhaps the source directory is read-only).
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 @@
##########################################################################
# 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 @@
$(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)