summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-02-16 03:59:53 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-02-16 03:59:53 (GMT)
commit92538fbf85c97d5ebbd8862803e593372ea79c2c (patch)
tree60e2254de589cbdff21f5b94fbe2a0a2b4fb7c98
parent84521c078e7809b38daf292a552ba519e0d3c3ac (diff)
downloadcpython-92538fbf85c97d5ebbd8862803e593372ea79c2c.zip
cpython-92538fbf85c97d5ebbd8862803e593372ea79c2c.tar.gz
cpython-92538fbf85c97d5ebbd8862803e593372ea79c2c.tar.bz2
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).
-rw-r--r--Makefile.pre.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 9eca6bc..fa8fc52 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -170,8 +170,8 @@ SIGNAL_OBJS= @SIGNAL_OBJS@
##########################################################################
# Grammar
-GRAMMAR_H= $(srcdir)/Include/graminit.h
-GRAMMAR_C= $(srcdir)/Python/graminit.c
+GRAMMAR_H= Include/graminit.h
+GRAMMAR_C= Python/graminit.c
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
@@ -392,9 +392,7 @@ Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
- $(PGEN) $(GRAMMAR_INPUT)
- mv graminit.h $(GRAMMAR_H)
- mv graminit.c $(GRAMMAR_C)
+ $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
$(PGEN): $(PGENOBJS)
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)