summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-22 18:37:46 (GMT)
committerGitHub <noreply@github.com>2022-04-22 18:37:46 (GMT)
commitf912cc0e413f667a8cc257a41775272bc641b0d8 (patch)
treeaf40aa0af1bd3e3669a05f3a909e227afaea2121 /Makefile.pre.in
parent48ec61a89a959071206549819448405c2cea61b0 (diff)
downloadcpython-f912cc0e413f667a8cc257a41775272bc641b0d8.zip
cpython-f912cc0e413f667a8cc257a41775272bc641b0d8.tar.gz
cpython-f912cc0e413f667a8cc257a41775272bc641b0d8.tar.bz2
gh-91575: Add a script for generating data for case-insensitive matching in re (GH-91660)
Also test that all extra cases are in BMP.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 04a371d..d9f821d 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -948,6 +948,12 @@ regen-test-frozenmain: $(BUILDPYTHON)
# using Programs/freeze_test_frozenmain.py
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Programs/freeze_test_frozenmain.py Programs/test_frozenmain.h
+.PHONY: regen-re
+regen-re: $(BUILDPYTHON)
+ # Regenerate Lib/re/_casefix.py
+ # using Tools/scripts/generate_re_casefix.py
+ $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/generate_re_casefix.py $(srcdir)/Lib/re/_casefix.py
+
Programs/_testembed: Programs/_testembed.o $(LINK_PYTHON_DEPS)
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)