improve multi_tables makefile

This commit is contained in:
Thomas Gubler 2015-01-06 10:27:40 +01:00
parent cd11c4d81c
commit 0d571458f5
1 changed files with 5 additions and 4 deletions

View File

@ -33,11 +33,12 @@
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
MULTI_TABLES := $(SELF_DIR)multi_tables.py
# Add explicit dependency, as implicit one doesn't work often.
$(SELF_DIR)mixer_multirotor.cpp : $(SELF_DIR)mixer_multirotor.generated.h
$(SELF_DIR)mixer_multirotor.generated.h : $(SELF_DIR)multi_tables
$(SELF_DIR)multi_tables > $(SELF_DIR)mixer_multirotor.generated.h
$(SELF_DIR)multi_tables
$(SELF_DIR)mixer_multirotor.generated.h : $(MULTI_TABLES)
$(Q) $(PYTHON) $(MULTI_TABLES) > $(SELF_DIR)mixer_multirotor.generated.h
$(Q) $(PYTHON) $(MULTI_TABLES)