Branch libreoffice-5-0-4
[LibreOffice.git] / solenv / gbuild / extensions / post_SpeedUpTargets.mk
bloba13392a29cf7ac52a43ebc7efd582235f4223bbd
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 ifneq ($(CROSS_COMPILING),)
11 gb_Module_add_targets_for_build :=
12 gb_Module_SKIPTARGETS := check slowcheck subsequentcheck
13 endif
15 ifeq ($(gb_Side),build)
16 gb_Module_SKIPTARGETS := check slowcheck subsequentcheck
17 endif
19 ifeq ($(MAKECMDGOALS),build)
20 gb_Module_SKIPTARGETS := check slowcheck subsequentcheck
21 endif
23 ifeq (,$(filter perfcheck,$(MAKECMDGOALS)))
24 gb_Module_SKIPTARGETS += perfcheck
25 else
26 gb_Module_SKIPTARGETS += check slowcheck subsequentcheck
27 endif
29 ifneq ($(strip $(MAKECMDGOALS)),)
30 # speed up depending on the target
31 gb_SpeedUpTargets_LEVEL_4 := debugrun help translations install-package-% packageinfo
32 gb_SpeedUpTargets_LEVEL_3 := showmodules $(gb_SpeedUpTargets_LEVEL_4)
33 gb_SpeedUpTargets_LEVEL_2 := $(gb_SpeedUpTargets_LEVEL_3)
34 gb_SpeedUpTargets_LEVEL_1 := clean showdeliverables $(gb_PackageInfo_get_target)/% $(gb_SpeedUpTargets_LEVEL_2)
36 ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_1),$(MAKECMDGOALS)),,T))
37 gb_FULLDEPS :=
39 ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_2),$(MAKECMDGOALS)),,T))
40 gb_Module_SKIPTARGETS += check slowcheck subsequentcheck
42 ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_3),$(MAKECMDGOALS)),,T))
43 gb_Module_SKIPTARGETS += build
45 ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_4),$(MAKECMDGOALS)),,T))
46 gb_Module_SKIPTARGETS += module
48 endif
49 endif
50 endif
51 endif
53 endif
56 ifneq (,$(filter build,$(gb_Module_SKIPTARGETS)))
57 gb_Module_add_target =
58 endif
60 ifneq (,$(filter check,$(gb_Module_SKIPTARGETS)))
61 gb_Module_add_check_target =
62 endif
64 ifneq (,$(filter slowcheck,$(gb_Module_SKIPTARGETS)))
65 gb_Module_add_slowcheck_target =
66 endif
68 ifneq (,$(filter subsequentcheck,$(gb_Module_SKIPTARGETS)))
69 gb_Module_add_subsequentcheck_target =
70 endif
72 ifneq (,$(filter perfcheck,$(gb_Module_SKIPTARGETS)))
73 gb_Module_add_perfcheck_target =
74 endif
76 ifneq (,$(filter module,$(gb_Module_SKIPTARGETS)))
77 gb_Module_add_moduledir =
78 endif
80 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: