bump product version to 7.2.5.1
[LibreOffice.git] / solenv / gbuild / Postprocess.mk
blob2c1dfd2f454b7722845938d599dfc6d78ffc4274
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(dir $(call gb_Postprocess_get_target,%)).dir :
11 $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
13 $(call gb_Postprocess_get_target,%) :
14 $(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(true),ALL,6)
15 $(call gb_Trace_MakeMark,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),ALL)
16 touch $@
18 .PHONY : $(call gb_Postprocess_get_clean_target,%)
19 $(call gb_Postprocess_get_clean_target,%) :
20 $(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(false),ALL,6)
21 rm -f $(call gb_Postprocess_get_target,$*)
23 define gb_Postprocess_Postprocess
24 $(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_INFO := $(2)
25 $(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_PREFIX := $(3)
26 $(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_INFO := $(2)
27 $(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_PREFIX := $(subst $(WORKDIR),$(WORKDIR)/Clean,$(3))
29 $(call gb_Postprocess_get_target,$(1)) :| $(dir $(call gb_Postprocess_get_target,$(1))).dir
31 $(call gb_Helper_make_userfriendly_targets,$(1),Postprocess)
33 endef
35 # gb_Postprocess_register_target category class targetname
36 define gb_Postprocess_register_target
37 $(call gb_Postprocess_get_target,$(1)) : $(call gb_$(2)_get_target,$(3))
38 $(call gb_Postprocess_get_clean_target,$(1)) : $(call gb_$(2)_get_clean_target,$(3))
40 endef
42 define gb_Postprocess_make_targets
43 $(call gb_Postprocess_Postprocess,AllExecutables,All executables)
44 $(call gb_Postprocess_Postprocess,AllLibraries,All libraries)
45 $(call gb_Postprocess_Postprocess,AllModulesButInstsetNative,All modules but instset,$(WORKDIR)/Module/)
46 $(call gb_Postprocess_Postprocess,AllPackages,All packages,$(WORKDIR)/Package/)
47 $(call gb_Postprocess_Postprocess,AllResources,All resources,$(WORKDIR)/AllLangRes/)
48 $(call gb_Postprocess_Postprocess,AllUIConfigs,All UI configuration files,$(WORKDIR)/UIConfig/)
49 $(call gb_Postprocess_Postprocess,AllModuleTests,All modules' tests,$(WORKDIR)/Module/check/)
50 $(call gb_Postprocess_Postprocess,AllModuleSlowtests,All modules' slowtests,$(WORKDIR)/Module/slowcheck/)
51 $(call gb_Postprocess_Postprocess,AllModuleScreenshots,All modules' screenshots,$(WORKDIR)/Module/screenshot/)
52 $(call gb_Postprocess_Postprocess,AllModuleUITests,All modules' uitests,$(WORKDIR)/Module/uicheck/)
54 endef
56 # vim: set noet sw=4 ts=4: