mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
Build grammar files in their proper place rather than moving them. This should
allow building with a read-only source tree (although I haven't tried it).
This commit is contained in:
parent
84521c078e
commit
92538fbf85
1 changed files with 3 additions and 5 deletions
|
@ -170,8 +170,8 @@ SIGNAL_OBJS= @SIGNAL_OBJS@
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Grammar
|
# Grammar
|
||||||
GRAMMAR_H= $(srcdir)/Include/graminit.h
|
GRAMMAR_H= Include/graminit.h
|
||||||
GRAMMAR_C= $(srcdir)/Python/graminit.c
|
GRAMMAR_C= Python/graminit.c
|
||||||
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
|
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
|
||||||
|
|
||||||
|
|
||||||
|
@ -392,9 +392,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)
|
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
||||||
mv graminit.h $(GRAMMAR_H)
|
|
||||||
mv graminit.c $(GRAMMAR_C)
|
|
||||||
|
|
||||||
$(PGEN): $(PGENOBJS)
|
$(PGEN): $(PGENOBJS)
|
||||||
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue