| 1 |
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- |
| 2 |
# |
| 3 |
# This file is part of the LibreOffice project. |
| 4 |
# |
| 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/. |
| 8 |
# |
| 9 |
|
| 10 |
ifneq ($(CROSS_COMPILING),) |
| 11 |
gb_Module_add_targets_for_build := |
| 12 |
endif |
| 13 |
|
| 14 |
ifeq ($(gb_CAN_EXECUTE_HOST_CODE),$(false)) |
| 15 |
gb_Module_SKIPTARGETS := check coverage slowcheck screenshot subsequentcheck uicheck |
| 16 |
endif |
| 17 |
|
| 18 |
ifeq ($(gb_Side),build) |
| 19 |
gb_Module_SKIPTARGETS := check coverage slowcheck screenshot subsequentcheck uicheck |
| 20 |
endif |
| 21 |
|
| 22 |
ifeq ($(MAKECMDGOALS),build) |
| 23 |
gb_Module_SKIPTARGETS := check coverage slowcheck screenshot subsequentcheck uicheck |
| 24 |
endif |
| 25 |
|
| 26 |
ifeq (,$(filter perfcheck,$(MAKECMDGOALS))) |
| 27 |
gb_Module_SKIPTARGETS += perfcheck |
| 28 |
else |
| 29 |
gb_Module_SKIPTARGETS += check coverage slowcheck screenshot subsequentcheck uicheck |
| 30 |
endif |
| 31 |
|
| 32 |
ifneq ($(strip $(MAKECMDGOALS)),) |
| 33 |
# speed up depending on the target |
| 34 |
gb_SpeedUpTargets_LEVEL_4 := debugrun help translations install-package-% packageinfo |
| 35 |
gb_SpeedUpTargets_LEVEL_3 := showmodules $(gb_SpeedUpTargets_LEVEL_4) |
| 36 |
gb_SpeedUpTargets_LEVEL_2 := $(gb_SpeedUpTargets_LEVEL_3) |
| 37 |
gb_SpeedUpTargets_LEVEL_1 := clean showdeliverables $(gb_PackageInfo_get_target)/% $(gb_SpeedUpTargets_LEVEL_2) |
| 38 |
|
| 39 |
ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_1),$(MAKECMDGOALS)),,T)) |
| 40 |
gb_FULLDEPS := |
| 41 |
|
| 42 |
ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_2),$(MAKECMDGOALS)),,T)) |
| 43 |
gb_Module_SKIPTARGETS += check coverage slowcheck screenshot subsequentcheck uicheck |
| 44 |
|
| 45 |
ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_3),$(MAKECMDGOALS)),,T)) |
| 46 |
gb_Module_SKIPTARGETS += build |
| 47 |
|
| 48 |
ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_4),$(MAKECMDGOALS)),,T)) |
| 49 |
gb_Module_SKIPTARGETS += module |
| 50 |
|
| 51 |
endif |
| 52 |
endif |
| 53 |
endif |
| 54 |
endif |
| 55 |
|
| 56 |
endif |
| 57 |
|
| 58 |
|
| 59 |
ifneq (,$(filter build,$(gb_Module_SKIPTARGETS))) |
| 60 |
gb_Module_add_target = |
| 61 |
endif |
| 62 |
|
| 63 |
ifneq (,$(filter check,$(gb_Module_SKIPTARGETS))) |
| 64 |
gb_Module_add_check_target = |
| 65 |
endif |
| 66 |
|
| 67 |
ifneq (,$(filter slowcheck,$(gb_Module_SKIPTARGETS))) |
| 68 |
gb_Module_add_slowcheck_target = |
| 69 |
endif |
| 70 |
|
| 71 |
ifneq (,$(filter screenshot,$(gb_Module_SKIPTARGETS))) |
| 72 |
gb_Module_add_screenshot_target = |
| 73 |
endif |
| 74 |
|
| 75 |
ifneq (,$(filter coverage,$(gb_Module_SKIPTARGETS))) |
| 76 |
gb_Module_add_coverage_target = |
| 77 |
endif |
| 78 |
|
| 79 |
ifneq (,$(filter subsequentcheck,$(gb_Module_SKIPTARGETS))) |
| 80 |
gb_Module_add_subsequentcheck_target = |
| 81 |
endif |
| 82 |
|
| 83 |
ifneq (,$(filter perfcheck,$(gb_Module_SKIPTARGETS))) |
| 84 |
gb_Module_add_perfcheck_target = |
| 85 |
endif |
| 86 |
|
| 87 |
ifneq (,$(filter uicheck,$(gb_Module_SKIPTARGETS))) |
| 88 |
gb_Module_add_uicheck_target = |
| 89 |
endif |
| 90 |
|
| 91 |
ifneq (,$(filter module,$(gb_Module_SKIPTARGETS))) |
| 92 |
gb_Module_add_moduledir = |
| 93 |
endif |
| 94 |
|
| 95 |
# vim:set shiftwidth=4 softtabstop=4 noexpandtab: |