]> granicus.if.org Git - python/commitdiff
Build grammar files in their proper place rather than moving them. This should
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 16 Feb 2001 03:59:53 +0000 (03:59 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 16 Feb 2001 03:59:53 +0000 (03:59 +0000)
allow building with a read-only source tree (although I haven't tried it).

Makefile.pre.in

index 9eca6bc84ad9d1afb7ecfe2e47585a18d0e3e3e4..fa8fc522ae937223a59b817d317061977e15b346 100644 (file)
@@ -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)