gbuild: allow to call Postprocess targets from top level
Change-Id: Id2755144f5942b4aeaaca8ef6dad0fcb11ddf76a
This commit is contained in:
parent
f546f4fc96
commit
df7b863705
@ -119,6 +119,7 @@ gbuild_TARGETS := AllLangHelp \
|
|||||||
Package \
|
Package \
|
||||||
PackageSet \
|
PackageSet \
|
||||||
Pagein \
|
Pagein \
|
||||||
|
Postprocess \
|
||||||
Pyuno \
|
Pyuno \
|
||||||
PythonTest \
|
PythonTest \
|
||||||
Rdb \
|
Rdb \
|
||||||
|
@ -14,17 +14,27 @@ $(call gb_Postprocess_get_target,%) :
|
|||||||
$(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(true),ALL)
|
$(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(true),ALL)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
.PHONY : $(call gb_Postprocess_get_clean_target,%)
|
||||||
|
$(call gb_Postprocess_get_clean_target,%) :
|
||||||
|
$(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(false),ALL)
|
||||||
|
rm -f $(call gb_Postprocess_get_target,$*)
|
||||||
|
|
||||||
define gb_Postprocess_Postprocess
|
define gb_Postprocess_Postprocess
|
||||||
$(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_INFO := $(2)
|
$(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_INFO := $(2)
|
||||||
$(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_PREFIX := $(3)
|
$(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_PREFIX := $(3)
|
||||||
|
$(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_INFO := $(2)
|
||||||
|
$(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_PREFIX := $(subst $(WORKDIR),$(WORKDIR)/Clean,$(3))
|
||||||
|
|
||||||
$(call gb_Postprocess_get_target,$(1)) :| $(dir $(call gb_Postprocess_get_target,$(1))).dir
|
$(call gb_Postprocess_get_target,$(1)) :| $(dir $(call gb_Postprocess_get_target,$(1))).dir
|
||||||
|
|
||||||
|
$(call gb_Helper_make_userfriendly_targets,$(1),Postprocess)
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# gb_Postprocess_register_target category class targetname
|
# gb_Postprocess_register_target category class targetname
|
||||||
define gb_Postprocess_register_target
|
define gb_Postprocess_register_target
|
||||||
$(call gb_Postprocess_get_target,$(1)) : $(call gb_$(2)_get_target,$(3))
|
$(call gb_Postprocess_get_target,$(1)) : $(call gb_$(2)_get_target,$(3))
|
||||||
|
$(call gb_Postprocess_get_clean_target,$(1)) : $(call gb_$(2)_get_clean_target,$(3))
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ $(eval $(call gb_Helper_make_clean_targets,\
|
|||||||
Package \
|
Package \
|
||||||
PackageSet \
|
PackageSet \
|
||||||
Pagein \
|
Pagein \
|
||||||
|
Postprocess \
|
||||||
PrecompiledHeader \
|
PrecompiledHeader \
|
||||||
PropertiesTranslateTarget \
|
PropertiesTranslateTarget \
|
||||||
Pyuno \
|
Pyuno \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user