diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-11-10 01:08:29 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-11-15 13:42:35 +0100 |
commit | cd992e621baba38c757fc1992082c06537bc8caf (patch) | |
tree | 199f6e656956ef413056cf225432eb8289d1af2d /solenv/gbuild | |
parent | b8bd25548eb8d13db07ed976c47071a951ded786 (diff) |
gbuild: add gb_CustomTarget_register_targets
Change-Id: I044bae6995f78ea70dea9da101036a6cf578d48f
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/CustomTarget.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/gbuild/CustomTarget.mk b/solenv/gbuild/CustomTarget.mk index d8b59d2b15c3..f56e262ee7a0 100644 --- a/solenv/gbuild/CustomTarget.mk +++ b/solenv/gbuild/CustomTarget.mk @@ -47,4 +47,15 @@ $(call gb_CustomTarget_get_target,$(1)) :| $(dir $(call gb_CustomTarget_get_targ endef +define gb_CustomTarget_register_target +$(call gb_CustomTarget_get_target,$(1)) : $(call gb_CustomTarget_get_workdir,$(1))/$(2) +$(call gb_CustomTarget_get_workdir,$(1))/$(2) :| $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir + +endef + +define gb_CustomTarget_register_targets +$(foreach target,$(2),$(call gb_CustomTarget_register_target,$(1),$(target))) + +endef + # vim: set noet sw=4: |