summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2015-11-16 09:17:39 +0100
committerDamien George <damien.p.george@gmail.com>2015-12-10 22:25:36 +0000
commit4651c4381e2c3c0ce3089b1701ef7439f0619b46 (patch)
treec35955272c844798090f8febb1dbf11cc831f517
parentde2a2e296ba1cb60a333fc52fef39d260e5ad4e5 (diff)
downloadmicropython-4651c4381e2c3c0ce3089b1701ef7439f0619b46.tar.gz
micropython-4651c4381e2c3c0ce3089b1701ef7439f0619b46.zip
stmhal: add order-only dependency on build directory
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
-rw-r--r--stmhal/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 8ee3f458f2..3168675424 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -336,15 +336,15 @@ CMSIS_MCU_HDR = cmsis/devinc/$(CMSIS_MCU_LOWER).h
$(BUILD)/modstm.o: $(GEN_STMCONST_HDR)
# Use a pattern rule here so that make will only call make-stmconst.py once to
# make both modstm_const.h and modstm_qstr.h
-$(HEADER_BUILD)/%_const.h $(BUILD)/%_qstr.h: $(CMSIS_MCU_HDR) make-stmconst.py
+$(HEADER_BUILD)/%_const.h $(BUILD)/%_qstr.h: $(CMSIS_MCU_HDR) make-stmconst.py | $(HEADER_BUILD)
$(ECHO) "Create stmconst $@"
$(Q)$(PYTHON) make-stmconst.py --qstr $(GEN_STMCONST_QSTR) $(CMSIS_MCU_HDR) > $(GEN_STMCONST_HDR)
-$(GEN_CDCINF_HEADER): $(GEN_CDCINF_FILE) $(FILE2H)
+$(GEN_CDCINF_HEADER): $(GEN_CDCINF_FILE) $(FILE2H) | $(HEADER_BUILD)
$(ECHO) "Create $@"
$(Q)$(PYTHON) $(FILE2H) $< > $@
-$(GEN_CDCINF_FILE): $(CDCINF_TEMPLATE) $(INSERT_USB_IDS) $(USB_IDS_FILE)
+$(GEN_CDCINF_FILE): $(CDCINF_TEMPLATE) $(INSERT_USB_IDS) $(USB_IDS_FILE) | $(HEADER_BUILD)
$(ECHO) "Create $@"
$(Q)$(PYTHON) $(INSERT_USB_IDS) $(USB_IDS_FILE) $< > $@