]> granicus.if.org Git - python/commitdiff
Issue #22359: Remove incorrect uses of recursive make. Patch by Jonas Wagner.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Sep 2014 22:21:58 +0000 (00:21 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Sep 2014 22:21:58 +0000 (00:21 +0200)
Makefile.pre.in
Misc/NEWS

index 04e4704a7d01de3bd0c26a3d0e6d1bd3e9c4d4c7..e5f5644a5056d2a7d3ced0b3ad188995713d83b5 100644 (file)
@@ -686,11 +686,12 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
 ############################################################################
 # Importlib
 
+Programs/_freeze_importlib.o: Programs/_freeze_importlib.c
+
 Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
        $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
 
-Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib.c
-       $(MAKE) Programs/_freeze_importlib
+Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
        ./Programs/_freeze_importlib \
                $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
 
@@ -752,15 +753,13 @@ Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile
 
 $(IO_OBJS): $(IO_H)
 
-$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
+$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
                @$(MKDIR_P) Include
-               $(MAKE) $(PGEN)
                $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
-               $(MAKE) $(GRAMMAR_H)
+$(GRAMMAR_C): $(GRAMMAR_H)
                touch $(GRAMMAR_C)
 
-$(PGEN):       $(PGENOBJS)
+$(PGEN): $(PGENOBJS)
                $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
 
 Parser/grammar.o:      $(srcdir)/Parser/grammar.c \
index da74650a0f9462e7eb46b5ca74ca7e6620c6a42d..0c6c12d6e152f2a5695175569f2554291d783cb7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -936,6 +936,9 @@ IDLE
 Build
 -----
 
+- Issue #22359: Remove incorrect uses of recursive make.  Patch by Jonas
+  Wagner.
+
 - Issue #21958: Define HAVE_ROUND when building with Visual Studio 2013 and
   above.  Patch by Zachary Turner.