diff options
-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: |