From: T. Wouters Date: Mon, 9 Sep 2019 13:38:37 +0000 (-0700) Subject: [3.7] bpo-37589: Add a few missing dependencies on .h files in the Makefile. (GH... X-Git-Tag: v3.7.5rc1~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64f7f6efa0b6ccd5f942b0dd7c63978957d1660e;p=thirdparty%2FPython%2Fcpython.git [3.7] bpo-37589: Add a few missing dependencies on .h files in the Makefile. (GH-15757) (GH-15769) The missing dependencies prevented incremental builds from working when you touched any of these files. Based on GH-14758 by @vemakereporter.. (cherry picked from commit b4612f5d54aced5bc37f1b85bf50b4cafa2480f0) https://bugs.python.org/issue37589 Automerge-Triggered-By: @gpshead --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 1a084d01549f..beaccf589488 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -321,8 +321,9 @@ PGOBJS= \ Parser/pgenmain.o PARSER_HEADERS= \ - $(srcdir)/Parser/parser.h \ + $(srcdir)/Include/grammar.h \ $(srcdir)/Include/parsetok.h \ + $(srcdir)/Parser/parser.h \ $(srcdir)/Parser/tokenizer.h PGENOBJS= $(POBJS) $(PGOBJS) @@ -856,7 +857,7 @@ regen-opcode: $(srcdir)/Include/opcode.h.new $(UPDATE_FILE) $(srcdir)/Include/opcode.h $(srcdir)/Include/opcode.h.new -Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h +Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o Python/future.o Parser/parsetok.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h Python/getplatform.o: $(srcdir)/Python/getplatform.c $(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c @@ -951,11 +952,11 @@ PYTHON_HEADERS= \ $(srcdir)/Include/accu.h \ $(srcdir)/Include/asdl.h \ $(srcdir)/Include/ast.h \ - $(srcdir)/Include/bltinmodule.h \ $(srcdir)/Include/bitset.h \ + $(srcdir)/Include/bltinmodule.h \ $(srcdir)/Include/boolobject.h \ - $(srcdir)/Include/bytes_methods.h \ $(srcdir)/Include/bytearrayobject.h \ + $(srcdir)/Include/bytes_methods.h \ $(srcdir)/Include/bytesobject.h \ $(srcdir)/Include/cellobject.h \ $(srcdir)/Include/ceval.h \ @@ -964,6 +965,7 @@ PYTHON_HEADERS= \ $(srcdir)/Include/codecs.h \ $(srcdir)/Include/compile.h \ $(srcdir)/Include/complexobject.h \ + $(srcdir)/Include/context.h \ $(srcdir)/Include/descrobject.h \ $(srcdir)/Include/dictobject.h \ $(srcdir)/Include/dtoa.h \ @@ -993,6 +995,7 @@ PYTHON_HEADERS= \ $(srcdir)/Include/node.h \ $(srcdir)/Include/object.h \ $(srcdir)/Include/objimpl.h \ + $(srcdir)/Include/odictobject.h \ $(srcdir)/Include/opcode.h \ $(srcdir)/Include/osdefs.h \ $(srcdir)/Include/osmodule.h \ @@ -1009,15 +1012,15 @@ PYTHON_HEADERS= \ $(srcdir)/Include/pyfpe.h \ $(srcdir)/Include/pyhash.h \ $(srcdir)/Include/pylifecycle.h \ - $(srcdir)/Include/pymath.h \ + $(srcdir)/Include/pymacconfig.h \ $(srcdir)/Include/pymacro.h \ + $(srcdir)/Include/pymath.h \ $(srcdir)/Include/pymem.h \ $(srcdir)/Include/pyport.h \ $(srcdir)/Include/pystate.h \ - $(srcdir)/Include/context.h \ $(srcdir)/Include/pystrcmp.h \ - $(srcdir)/Include/pystrtod.h \ $(srcdir)/Include/pystrhex.h \ + $(srcdir)/Include/pystrtod.h \ $(srcdir)/Include/pythonrun.h \ $(srcdir)/Include/pythread.h \ $(srcdir)/Include/pytime.h \ @@ -1028,6 +1031,7 @@ PYTHON_HEADERS= \ $(srcdir)/Include/structseq.h \ $(srcdir)/Include/symtable.h \ $(srcdir)/Include/sysmodule.h \ + $(srcdir)/Include/token.h \ $(srcdir)/Include/traceback.h \ $(srcdir)/Include/tupleobject.h \ $(srcdir)/Include/ucnhash.h \