diff options
author | Trent Nelson <trent@trent.me> | 2012-08-30 14:52:38 (GMT) |
---|---|---|
committer | Trent Nelson <trent@trent.me> | 2012-08-30 14:52:38 (GMT) |
commit | e60ee2985cfd5e5057da1a6e25e74cf717792fef (patch) | |
tree | 79cf5667ab9f96e20952f8179be78fb8a6ebf9ae /Makefile.pre.in | |
parent | cfa51f51357b0ef05258072e6ba4067b8e50d6af (diff) | |
download | cpython-e60ee2985cfd5e5057da1a6e25e74cf717792fef.zip cpython-e60ee2985cfd5e5057da1a6e25e74cf717792fef.tar.gz cpython-e60ee2985cfd5e5057da1a6e25e74cf717792fef.tar.bz2 |
Issue #15819: Fix out-of-tree builds from a readonly source.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index e0356e6..6812865 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -229,8 +229,8 @@ IO_OBJS= \ ########################################################################## # Grammar -GRAMMAR_H= $(srcdir)/Include/graminit.h -GRAMMAR_C= $(srcdir)/Python/graminit.c +GRAMMAR_H= Include/graminit.h +GRAMMAR_C= Python/graminit.c GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar @@ -296,9 +296,9 @@ PGENOBJS= $(POBJS) $(PGOBJS) ########################################################################## # AST -AST_H_DIR= $(srcdir)/Include +AST_H_DIR= Include AST_H= $(AST_H_DIR)/Python-ast.h -AST_C_DIR= $(srcdir)/Python +AST_C_DIR= Python AST_C= $(AST_C_DIR)/Python-ast.c AST_ASDL= $(srcdir)/Parser/Python.asdl @@ -665,9 +665,11 @@ Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c Parser/pgenmain.o: $(srcdir)/Include/parsetok.h $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES) + $(MKDIR_P) $(AST_H_DIR) $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL) $(AST_C): $(AST_H) $(AST_ASDL) $(ASDLGEN_FILES) + $(MKDIR_P) $(AST_C_DIR) $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL) Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) |