]> granicus.if.org Git - python/commitdiff
Generate grammar source files in srcdir. Ignore the error if they cannot
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Tue, 27 Feb 2001 02:19:16 +0000 (02:19 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Tue, 27 Feb 2001 02:19:16 +0000 (02:19 +0000)
be created (perhaps the source directory is read-only).

Makefile.pre.in

index 08ba3e18c618f8eb2f2cbf51a08bf942b0888161..872f746f0ea31c304d592a935c2407864dd7fb87 100644 (file)
@@ -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)