aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-23 01:38:11 +0100
committerGitHub <noreply@github.com>2020-04-23 01:38:11 +0100
commita25f3c4c8f7d4878918ce1d3d67db40ae255ccc6 (patch)
tree2f93a0c1d9f8f3ef150ff31f9e6f7cf8c020592a /Makefile.pre.in
parentAdd @pablogsal as code owner for pegen-related files (GH-19665) (diff)
downloadcpython-a25f3c4c8f7d4878918ce1d3d67db40ae255ccc6.tar.gz
cpython-a25f3c4c8f7d4878918ce1d3d67db40ae255ccc6.tar.bz2
cpython-a25f3c4c8f7d4878918ce1d3d67db40ae255ccc6.zip
bpo-40334: Fix builds outside the source directory and regenerate autoconf files (GH-19667)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index b34fa64ff4b..29d7e344682 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -822,6 +822,7 @@ regen-grammar: regen-token
.PHONY: regen-pegen
regen-pegen:
+ @$(MKDIR_P) -p $(srcdir)/Parser/pegen
PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -c -q $(srcdir)/Grammar/python.gram \
-o $(srcdir)/Parser/pegen/parse.new.c
$(UPDATE_FILE) $(srcdir)/Parser/pegen/parse.c $(srcdir)/Parser/pegen/parse.new.c