diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-10-04 17:55:10 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-10-04 18:34:22 +0200 |
commit | ff9dc14034b28492d302a6cbe94a63d308335ddd (patch) | |
tree | 04850a0dcf8a45d110885380bed9c455beedf794 /solenv | |
parent | 1967376c7b3072fefb6f74566cfa70fd03b9bd04 (diff) |
make RdbTarget depend on its makefile
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/RdbTarget.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/RdbTarget.mk b/solenv/gbuild/RdbTarget.mk index 0cdcebf3fe81..5ced7ed1e0d3 100644 --- a/solenv/gbuild/RdbTarget.mk +++ b/solenv/gbuild/RdbTarget.mk @@ -59,7 +59,11 @@ ifeq ($(2),$(true)) $(call gb_RdbTarget_get_outdir_target,$(1)) : $(call gb_RdbTarget_get_target,$(1)) $(call gb_Deliver_add_deliverable,$(call gb_ResTarget_get_outdir_target,$(1)),$(call gb_RdbTarget_get_target,$(1))) endif +# depend on the last sourced makefile, which should contain the declaration of this target +# thus, when you change the RdbTarget_*.mk, the target will get rebuild +$(call gb_RdbTarget_get_target,$(1)) : $(lastword $(MAKEFILE_LIST)) +$$(eval $$(call gb_Module_register_target,$(call gb_RdbTarget_get_target,$(1)),$(call gb_RdbTarget_get_clean_target,$(1)))) endef define gb_RdbTarget_add_component |