mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
LP-136 Fix uavobjgenerator make dependencies
Let targets depend on the resulting uavobjgenerator binaries, instead of the phony target with the same name.
This commit is contained in:
parent
1ea729ecc6
commit
1dd68fb929
10
Makefile
10
Makefile
@ -170,7 +170,9 @@ UAVOBJGENERATOR_DIR := $(BUILD_DIR)/uavobjgenerator
|
|||||||
DIRS += $(UAVOBJGENERATOR_DIR)
|
DIRS += $(UAVOBJGENERATOR_DIR)
|
||||||
|
|
||||||
.PHONY: uavobjgenerator
|
.PHONY: uavobjgenerator
|
||||||
uavobjgenerator $(UAVOBJGENERATOR): | $(UAVOBJGENERATOR_DIR)
|
uavobjgenerator: $(UAVOBJGENERATOR)
|
||||||
|
|
||||||
|
$(UAVOBJGENERATOR): | $(UAVOBJGENERATOR_DIR)
|
||||||
$(V1) cd $(UAVOBJGENERATOR_DIR) && \
|
$(V1) cd $(UAVOBJGENERATOR_DIR) && \
|
||||||
( [ -f Makefile ] || $(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro \
|
( [ -f Makefile ] || $(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro \
|
||||||
-spec $(QT_SPEC) CONFIG+=$(GCS_BUILD_CONF) CONFIG+=$(GCS_SILENT) ) && \
|
-spec $(QT_SPEC) CONFIG+=$(GCS_BUILD_CONF) CONFIG+=$(GCS_SILENT) ) && \
|
||||||
@ -184,13 +186,13 @@ uavobjects: $(addprefix uavobjects_, $(UAVOBJ_TARGETS))
|
|||||||
UAVOBJ_XML_DIR := $(ROOT_DIR)/shared/uavobjectdefinition
|
UAVOBJ_XML_DIR := $(ROOT_DIR)/shared/uavobjectdefinition
|
||||||
UAVOBJ_OUT_DIR := $(BUILD_DIR)/uavobject-synthetics
|
UAVOBJ_OUT_DIR := $(BUILD_DIR)/uavobject-synthetics
|
||||||
|
|
||||||
uavobjects_%: uavobjgenerator
|
uavobjects_%: $(UAVOBJGENERATOR)
|
||||||
@$(MKDIR) -p $(UAVOBJ_OUT_DIR)/$*
|
@$(MKDIR) -p $(UAVOBJ_OUT_DIR)/$*
|
||||||
$(V1) ( cd $(UAVOBJ_OUT_DIR)/$* && \
|
$(V1) ( cd $(UAVOBJ_OUT_DIR)/$* && \
|
||||||
$(UAVOBJGENERATOR) -$* $(UAVOBJ_XML_DIR) $(ROOT_DIR) ; \
|
$(UAVOBJGENERATOR) -$* $(UAVOBJ_XML_DIR) $(ROOT_DIR) ; \
|
||||||
)
|
)
|
||||||
|
|
||||||
uavobjects_test: uavobjgenerator
|
uavobjects_test: $(UAVOBJGENERATOR)
|
||||||
$(V1) $(UAVOBJGENERATOR) -v $(UAVOBJ_XML_DIR) $(ROOT_DIR)
|
$(V1) $(UAVOBJGENERATOR) -v $(UAVOBJ_XML_DIR) $(ROOT_DIR)
|
||||||
|
|
||||||
uavobjects_clean:
|
uavobjects_clean:
|
||||||
@ -256,7 +258,7 @@ gcs_qmake $(GCS_MAKEFILE): | $(GCS_DIR)
|
|||||||
$(GCS_QMAKE_OPTS)
|
$(GCS_QMAKE_OPTS)
|
||||||
|
|
||||||
.PHONY: gcs
|
.PHONY: gcs
|
||||||
gcs: uavobjgenerator $(GCS_MAKEFILE)
|
gcs: $(UAVOBJGENERATOR) $(GCS_MAKEFILE)
|
||||||
$(V1) $(MAKE) -w -C $(GCS_DIR)/$(MAKE_DIR);
|
$(V1) $(MAKE) -w -C $(GCS_DIR)/$(MAKE_DIR);
|
||||||
|
|
||||||
.PHONY: gcs_clean
|
.PHONY: gcs_clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user