summaryrefslogtreecommitdiff
path: root/py/mkrules.mk
diff options
context:
space:
mode:
authorAndrew Scheller <github@loowis.durge.org>2014-04-16 22:10:33 +0100
committerAndrew Scheller <github@loowis.durge.org>2014-04-16 22:16:28 +0100
commit70a7d7a94397cbe01fd5457e34f3d3368300f2ac (patch)
tree50ffda62cc15f607d543e76aaf0c23a614dd5618 /py/mkrules.mk
parenta1c67206c88fe0c0712c99d6181cff9b99b07b33 (diff)
build directory can now be renamed
The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
Diffstat (limited to 'py/mkrules.mk')
-rw-r--r--py/mkrules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index 08ba8fc41..63a98a8ec 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -59,10 +59,16 @@ $(BUILD)/%.pp: %.c
# object directories (but only for existance), and the object directories
# will be created if they don't exist.
OBJ_DIRS = $(sort $(dir $(OBJ)))
-$(OBJ): $(PY_BUILD)/qstrdefs.generated.h | $(OBJ_DIRS)
+$(OBJ): $(HEADER_PY_BUILD)/qstrdefs.generated.h | $(OBJ_DIRS)
$(OBJ_DIRS):
$(MKDIR) -p $@
+$(HEADER_BUILD):
+ $(MKDIR) -p $@
+
+$(HEADER_PY_BUILD):
+ $(MKDIR) -p $@
+
ifneq ($(PROG),)
# Build a standalone executable (unix and unix-cpy do this)