gbuild: allow to call Postprocess targets from top level

Change-Id: Id2755144f5942b4aeaaca8ef6dad0fcb11ddf76a
This commit is contained in:
David Tardon 2013-05-24 15:49:11 +02:00
parent f546f4fc96
commit df7b863705
3 changed files with 12 additions and 0 deletions

View file

@ -119,6 +119,7 @@ gbuild_TARGETS := AllLangHelp \
Package \
PackageSet \
Pagein \
Postprocess \
Pyuno \
PythonTest \
Rdb \

View file

@ -14,17 +14,27 @@ $(call gb_Postprocess_get_target,%) :
$(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(true),ALL)
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
$(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_INFO := $(2)
$(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_Helper_make_userfriendly_targets,$(1),Postprocess)
endef
# gb_Postprocess_register_target category class targetname
define gb_Postprocess_register_target
$(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

View file

@ -299,6 +299,7 @@ $(eval $(call gb_Helper_make_clean_targets,\
Package \
PackageSet \
Pagein \
Postprocess \
PrecompiledHeader \
PropertiesTranslateTarget \
Pyuno \