Bump version to 6.4.7.2.M8
[LibreOffice.git] / solenv / gbuild / Postprocess.mk
blob5b20a6686cfe4fcb9498083cfa23c9ebbc22281a
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 touch $@
17 .PHONY : $(call gb_Postprocess_get_clean_target,%)
18 $(call gb_Postprocess_get_clean_target,%) :
19 $(call gb_Output_announce,$(POSTPROCESS_INFO): $(if $(POSTPROCESS_PREFIX),$(subst $(POSTPROCESS_PREFIX),,$^),$^),$(false),ALL,6)
20 rm -f $(call gb_Postprocess_get_target,$*)
22 define gb_Postprocess_Postprocess
23 $(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_INFO := $(2)
24 $(call gb_Postprocess_get_target,$(1)) : POSTPROCESS_PREFIX := $(3)
25 $(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_INFO := $(2)
26 $(call gb_Postprocess_get_clean_target,$(1)) : POSTPROCESS_PREFIX := $(subst $(WORKDIR),$(WORKDIR)/Clean,$(3))
28 $(call gb_Postprocess_get_target,$(1)) :| $(dir $(call gb_Postprocess_get_target,$(1))).dir
30 $(call gb_Helper_make_userfriendly_targets,$(1),Postprocess)
32 endef
34 # gb_Postprocess_register_target category class targetname
35 define gb_Postprocess_register_target
36 $(call gb_Postprocess_get_target,$(1)) : $(call gb_$(2)_get_target,$(3))
37 $(call gb_Postprocess_get_clean_target,$(1)) : $(call gb_$(2)_get_clean_target,$(3))
39 endef
41 define gb_Postprocess_make_targets
42 $(call gb_Postprocess_Postprocess,AllExecutables,All executables)
43 $(call gb_Postprocess_Postprocess,AllLibraries,All libraries)
44 $(call gb_Postprocess_Postprocess,AllModulesButInstsetNative,All modules but instset,$(WORKDIR)/Module/)
45 $(call gb_Postprocess_Postprocess,AllPackages,All packages,$(WORKDIR)/Package/)
46 $(call gb_Postprocess_Postprocess,AllResources,All resources,$(WORKDIR)/AllLangRes/)
47 $(call gb_Postprocess_Postprocess,AllUIConfigs,All UI configuration files,$(WORKDIR)/UIConfig/)
48 $(call gb_Postprocess_Postprocess,AllModuleTests,All modules' tests,$(WORKDIR)/Module/check/)
49 $(call gb_Postprocess_Postprocess,AllModuleSlowtests,All modules' slowtests,$(WORKDIR)/Module/slowcheck/)
50 $(call gb_Postprocess_Postprocess,AllModuleScreenshots,All modules' screenshots,$(WORKDIR)/Module/screenshot/)
51 $(call gb_Postprocess_Postprocess,AllModuleUITests,All modules' uitests,$(WORKDIR)/Module/uicheck/)
53 endef
55 # vim: set noet sw=4 ts=4: