Generate grammar source files in srcdir. Ignore the error if they cannot
be created (perhaps the source directory is read-only).
This commit is contained in:
parent
acbf9ef784
commit
7cd124c7d2
|
@ -157,8 +157,8 @@ SIGNAL_OBJS= @SIGNAL_OBJS@
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Grammar
|
# Grammar
|
||||||
GRAMMAR_H= Include/graminit.h
|
GRAMMAR_H= $(srcdir)/Include/graminit.h
|
||||||
GRAMMAR_C= Python/graminit.c
|
GRAMMAR_C= $(srcdir)/Python/graminit.c
|
||||||
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
|
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
|
||||||
|
|
||||||
|
|
||||||
|
@ -379,7 +379,7 @@ Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
|
||||||
|
|
||||||
|
|
||||||
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
|
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
|
||||||
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
||||||
|
|
||||||
$(PGEN): $(PGENOBJS)
|
$(PGEN): $(PGENOBJS)
|
||||||
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
||||||
|
|
Loading…
Reference in New Issue