summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2014-04-17 01:13:29 +0200
committerThomas Wouters <thomas@python.org>2014-04-17 01:13:29 +0200
commitb7781c267239a03e8060544d1eb90c3f3fb4b23e (patch)
tree2170c12d1ebe26da2c3f068ce211d8a941d55966 /Makefile.pre.in
parentf7dc4b2d4da501c49349e47e580e6198c4057ebb (diff)
downloadcpython-b7781c267239a03e8060544d1eb90c3f3fb4b23e.tar.gz
Fix Tools/scripts/generate_opcode_h.py from issue #17861 to work correctly
when building in a separate object tree. More people should build this way. This may still fail if the source is unwritable, I haven't tested that yet.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index fbec3b7a68..8866766305 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -324,10 +324,10 @@ PGENOBJS= $(POBJS) $(PGOBJS)
##########################################################################
# opcode.h generation
-OPCODE_H_DIR= Include
-OPCODE_H_SCRIPT= Tools/scripts/generate_opcode_h.py
-OPCODE_H= $(srcdir)/$(OPCODE_H_DIR)/opcode.h
-OPCODE_H_GEN= @OPCODEHGEN@ $(OPCODE_H_SCRIPT) Lib/ $(OPCODE_H)
+OPCODE_H_DIR= $(srcdir)/Include
+OPCODE_H_SCRIPT= $(srcdir)/Tools/scripts/generate_opcode_h.py
+OPCODE_H= $(OPCODE_H_DIR)/opcode.h
+OPCODE_H_GEN= @OPCODEHGEN@ $(OPCODE_H_SCRIPT) $(srcdir)/Lib/opcode.py $(OPCODE_H)
#
##########################################################################
# AST