Skip to content

Commit 64f7f6e

Browse files
Yhg1smiss-islington
authored andcommitted
[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 b4612f5) https://bugs.python.org/issue37589 Automerge-Triggered-By: @gpshead
1 parent d3b8a6b commit 64f7f6e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Makefile.pre.in

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,9 @@ PGOBJS= \
321321
Parser/pgenmain.o
322322

323323
PARSER_HEADERS= \
324-
$(srcdir)/Parser/parser.h \
324+
$(srcdir)/Include/grammar.h \
325325
$(srcdir)/Include/parsetok.h \
326+
$(srcdir)/Parser/parser.h \
326327
$(srcdir)/Parser/tokenizer.h
327328

328329
PGENOBJS= $(POBJS) $(PGOBJS)
@@ -856,7 +857,7 @@ regen-opcode:
856857
$(srcdir)/Include/opcode.h.new
857858
$(UPDATE_FILE) $(srcdir)/Include/opcode.h $(srcdir)/Include/opcode.h.new
858859

859-
Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h
860+
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
860861

861862
Python/getplatform.o: $(srcdir)/Python/getplatform.c
862863
$(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
@@ -951,11 +952,11 @@ PYTHON_HEADERS= \
951952
$(srcdir)/Include/accu.h \
952953
$(srcdir)/Include/asdl.h \
953954
$(srcdir)/Include/ast.h \
954-
$(srcdir)/Include/bltinmodule.h \
955955
$(srcdir)/Include/bitset.h \
956+
$(srcdir)/Include/bltinmodule.h \
956957
$(srcdir)/Include/boolobject.h \
957-
$(srcdir)/Include/bytes_methods.h \
958958
$(srcdir)/Include/bytearrayobject.h \
959+
$(srcdir)/Include/bytes_methods.h \
959960
$(srcdir)/Include/bytesobject.h \
960961
$(srcdir)/Include/cellobject.h \
961962
$(srcdir)/Include/ceval.h \
@@ -964,6 +965,7 @@ PYTHON_HEADERS= \
964965
$(srcdir)/Include/codecs.h \
965966
$(srcdir)/Include/compile.h \
966967
$(srcdir)/Include/complexobject.h \
968+
$(srcdir)/Include/context.h \
967969
$(srcdir)/Include/descrobject.h \
968970
$(srcdir)/Include/dictobject.h \
969971
$(srcdir)/Include/dtoa.h \
@@ -993,6 +995,7 @@ PYTHON_HEADERS= \
993995
$(srcdir)/Include/node.h \
994996
$(srcdir)/Include/object.h \
995997
$(srcdir)/Include/objimpl.h \
998+
$(srcdir)/Include/odictobject.h \
996999
$(srcdir)/Include/opcode.h \
9971000
$(srcdir)/Include/osdefs.h \
9981001
$(srcdir)/Include/osmodule.h \
@@ -1009,15 +1012,15 @@ PYTHON_HEADERS= \
10091012
$(srcdir)/Include/pyfpe.h \
10101013
$(srcdir)/Include/pyhash.h \
10111014
$(srcdir)/Include/pylifecycle.h \
1012-
$(srcdir)/Include/pymath.h \
1015+
$(srcdir)/Include/pymacconfig.h \
10131016
$(srcdir)/Include/pymacro.h \
1017+
$(srcdir)/Include/pymath.h \
10141018
$(srcdir)/Include/pymem.h \
10151019
$(srcdir)/Include/pyport.h \
10161020
$(srcdir)/Include/pystate.h \
1017-
$(srcdir)/Include/context.h \
10181021
$(srcdir)/Include/pystrcmp.h \
1019-
$(srcdir)/Include/pystrtod.h \
10201022
$(srcdir)/Include/pystrhex.h \
1023+
$(srcdir)/Include/pystrtod.h \
10211024
$(srcdir)/Include/pythonrun.h \
10221025
$(srcdir)/Include/pythread.h \
10231026
$(srcdir)/Include/pytime.h \
@@ -1028,6 +1031,7 @@ PYTHON_HEADERS= \
10281031
$(srcdir)/Include/structseq.h \
10291032
$(srcdir)/Include/symtable.h \
10301033
$(srcdir)/Include/sysmodule.h \
1034+
$(srcdir)/Include/token.h \
10311035
$(srcdir)/Include/traceback.h \
10321036
$(srcdir)/Include/tupleobject.h \
10331037
$(srcdir)/Include/ucnhash.h \

0 commit comments

Comments
 (0)