summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2021-02-19 00:49:12 (GMT)
committerGitHub <noreply@github.com>2021-02-19 00:49:12 (GMT)
commitffa55d21b4a86ad8b4a43a9f597151e526541130 (patch)
tree788adcfdf91d11c30cf92ae15e112b864819a734 /Makefile.pre.in
parent743932d50815edbe4ffd530ae091c53ae47dd34b (diff)
downloadcpython-ffa55d21b4a86ad8b4a43a9f597151e526541130.zip
cpython-ffa55d21b4a86ad8b4a43a9f597151e526541130.tar.gz
cpython-ffa55d21b4a86ad8b4a43a9f597151e526541130.tar.bz2
bpo-39448: Add regen-frozen makefile target. (GH-18174)
Add the "regen-frozen" makefile target that regenerates the code for the frozen __hello__ module.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 593da93..e4ac248 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -761,7 +761,7 @@ regen-limited-abi: all
regen-all: regen-opcode regen-opcode-targets regen-typeslots \
regen-token regen-ast regen-keyword regen-importlib clinic \
- regen-pegen-metaparser regen-pegen
+ regen-pegen-metaparser regen-pegen regen-frozen
@echo
@echo "Note: make regen-stdlib-module-names and autoconf should be run manually"
@@ -870,6 +870,11 @@ regen-opcode:
$(srcdir)/Include/opcode.h.new
$(UPDATE_FILE) $(srcdir)/Include/opcode.h $(srcdir)/Include/opcode.h.new
+.PHONY: regen-frozen
+regen-frozen:
+ # Regenerate code for frozen module "__hello__".
+ $(PYTHON_FOR_REGEN) $(srcdir)/Tools/freeze/regen_frozen.py $(srcdir)/Python/frozen_hello.h
+
.PHONY: regen-token
regen-token:
# Regenerate Doc/library/token-list.inc from Grammar/Tokens
@@ -974,7 +979,7 @@ Python/ceval.o: $(srcdir)/Python/opcode_targets.h $(srcdir)/Python/ceval_gil.h \
$(srcdir)/Python/condvar.h
Python/frozen.o: $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib_external.h \
- $(srcdir)/Python/importlib_zipimport.h
+ $(srcdir)/Python/importlib_zipimport.h $(srcdir)/Python/frozen_hello.h
# Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to
# follow our naming conventions. dtrace(1) uses the output filename to generate