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/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 # Overview of dependencies and tasks of Module
23 # target task depends on
24 # Module build the product all product targets
25 # excluding tests recursive Modules
26 # Module/unitcheck run unit tests all unit tests
27 # recursive Module/checks
28 # Module/slowcheck run all slow unit tests
29 # Module/screenshot create all screenshots
30 # Module/subsequentcheck run system tests all system tests
31 # Module/uicheck run uitests all uitests
32 # recursive Module/subsequentchecks
33 # build (global) build the product top-level Module
34 # unitcheck (global) run unit tests top-level Module/unitcheck
35 # slowcheck (global) run slow unit tests top-level Module/slowcheck
36 # screenshot (global) create all screenshots top-level Module/screenshot
37 # subsequentcheck (global) run system tests top-level Module/subsequentcheck
38 # perfcheck (global) run performance unit tests top-level Module/perfcheck
39 # uicheck (global) run the uitests run all uitests
40 # all (global) default goal build unitcheck
45 gb_Module_ALLMODULES
:=
46 gb_Module_MODULELOCATIONS
:=
47 gb_Module_TARGETSTACK
:=
48 gb_Module_L10NTARGETSTACK
:=
49 gb_Module_CHECKTARGETSTACK
:=
50 gb_Module_SLOWCHECKTARGETSTACK
:=
51 gb_Module_SCREENSHOTTARGETSTACK
:=
52 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:=
53 gb_Module_STAGINGCHECKTARGETSTACK
:=
54 gb_Module_PERFCHECKTARGETSTACK
:=
55 gb_Module_UICHECKTARGETSTACK
:=
56 gb_Module_CLEANTARGETSTACK
:=
58 # The currently read gbuild makefile.
60 # gbuild classes should use this if they need to depend on their makefile
61 # (e.g., to make sure a zip file is rebuilt if files are removed from it).
62 # Because makefiles may include other makefiles, it is not safe to rely
63 # on $(MAKEFILE_LIST).
64 gb_Module_CURRENTMAKEFILE
:=
66 $(call gb_Module_get_nonl10n_target
,%) :
67 $(call gb_Output_announce
,$*,$(true
),BIN
,5)
68 -$(call gb_Helper_abbreviate_dirs
,\
69 mkdir
-p
$(dir $@
) && \
72 .PHONY
: $(call gb_Module_get_clean_target
,%)
73 $(call gb_Module_get_clean_target
,%) :
74 $(call gb_Output_announce
,$*,$(false
),MOD
,5)
75 $(call gb_Output_announce_title
,module
$* cleared.
)
76 -$(call gb_Helper_abbreviate_dirs
,\
77 rm -f
$(call gb_Module_get_target
,$*) $(call gb_Module_get_nonl10n_target
,$*) $(call gb_Module_get_l10n_target
,$*) $(call gb_Module_get_check_target
,$*) $(call gb_Module_get_slowcheck_target
,$*) $(call gb_Module_get_screenshot_target
,$*) $(call gb_Module_get_subsequentcheck_target
,$*) $(call gb_Module_get_perfcheck_target
,$*) $(call gb_Module_get_uicheck
,$*))
79 $(call gb_Module_get_l10n_target
,%) :
80 $(call gb_Output_announce
,$*,$(true
),LOC
,5)
81 $(call gb_Output_announce_title
,module
$* done.
)
82 -$(call gb_Helper_abbreviate_dirs
,\
83 mkdir
-p
$(dir $@
) && \
86 $(call gb_Module_get_check_target
,%) :
87 $(call gb_Output_announce
,$*,$(true
),CHK
,5)
88 $(call gb_Output_announce_title
,module
$* checks done.
)
89 -$(call gb_Helper_abbreviate_dirs
,\
90 mkdir
-p
$(dir $@
) && \
93 $(call gb_Module_get_slowcheck_target
,%) :
94 $(call gb_Output_announce
,$*,$(true
),SLC
,5)
95 $(call gb_Output_announce_title
,module
$* slowchecks done.
)
96 -$(call gb_Helper_abbreviate_dirs
,\
97 mkdir
-p
$(dir $@
) && \
100 $(call gb_Module_get_screenshot_target
,%) :
101 $(call gb_Output_announce
,$*,$(true
),SCR
,5)
102 $(call gb_Output_announce_title
,module
$* screenshots done.
)
103 -$(call gb_Helper_abbreviate_dirs
,\
104 mkdir
-p
$(dir $@
) && \
107 $(call gb_Module_get_subsequentcheck_target
,%) :
108 $(call gb_Output_announce
,$*,$(true
),SCK
,5)
109 $(call gb_Output_announce_title
,module
$* subsequentchecks done.
)
110 -$(call gb_Helper_abbreviate_dirs
,\
111 mkdir
-p
$(dir $@
) && \
114 $(call gb_Module_get_stagingcheck_target
,%) :
115 $(call gb_Output_announce
,$*,$(true
),STC
,5)
116 $(call gb_Output_announce_title
,module
$* stagingchecks done.
)
117 -$(call gb_Helper_abbreviate_dirs
,\
118 mkdir
-p
$(dir $@
) && \
121 $(call gb_Module_get_perfcheck_target
,%) :
122 $(call gb_Output_announce
,$*,$(true
),PFC
,5)
123 $(call gb_Output_announce_title
,module
$* perfchecks done.
)
124 -$(call gb_Helper_abbreviate_dirs
,\
125 mkdir
-p
$(dir $@
) && \
128 $(call gb_Module_get_uicheck_target
,%) :
129 $(call gb_Output_announce
,$*,$(true
),UIT
,5)
130 $(call gb_Output_announce_title
,module
$* uicheck done.
)
131 -$(call gb_Helper_abbreviate_dirs
,\
132 mkdir
-p
$(dir $@
) && \
135 $(call gb_Module_get_target
,%) :
136 $(call gb_Output_announce
,$*,$(true
),MOD
,5)
137 $(call gb_Output_announce_title
,module
$* done.
)
138 -$(call gb_Helper_abbreviate_dirs
,\
139 mkdir
-p
$(dir $@
) && \
142 .PHONY
: all build build-l10n-only build-non-l10n-only unitcheck slowcheck screenshot subsequentcheck stagingcheck perfcheck uicheck
clean check debugrun help showmodules translations
145 all : build
$(if
$(CROSS_COMPILING
),,unitcheck
$(if
$(gb_PARTIAL_BUILD
),,slowcheck
))
147 ifeq ($(gb_Side
),build
)
148 build-tools
: $(gb_BUILD_TOOLS
)
149 $(call gb_Output_announce
,loaded tools
: $(gb_BUILD_TOOLS
),$(true
),ALL
,6)
150 $(call gb_Output_announce_title
,build-tools done.
)
151 $(call gb_Output_announce_bell
)
155 $(call gb_Output_announce
,top level modules
: $(foreach module
,$(filter-out deliverlog
$(WORKDIR
)/bootstrap
,$^
),$(notdir $(module
))),$(true
),ALL
,6)
156 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),ALL
,6))
157 $(call gb_Output_announce_title
,build done.
)
158 $(call gb_Output_announce_bell
)
161 $(call gb_Output_announce
,top level modules
: $(foreach module
,$(filter-out deliverlog
$(WORKDIR
)/bootstrap
,$^
),$(notdir $(module
))),$(true
),LOC
,6)
162 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),LOC
,6))
163 $(call gb_Output_announce_title
,l10n done.
)
164 $(call gb_Output_announce_bell
)
166 build-non-l10n-only
:
167 $(call gb_Output_announce
,top level modules
: $(foreach module
,$(filter-out deliverlog
$(WORKDIR
)/bootstrap
,$^
),$(notdir $(module
))),$(true
),BIN
,6)
168 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),BIN
,6))
169 $(call gb_Output_announce_title
,non-l10n done.
)
170 $(call gb_Output_announce_bell
)
173 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),CHK
,6))
174 $(call gb_Output_announce_title
,all unittests checked.
)
175 $(call gb_Output_announce_bell
)
178 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),SLC
,6))
179 $(call gb_Output_announce_title
,all slowtests checked.
)
180 $(call gb_Output_announce_bell
)
183 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),SCR
,6))
184 $(call gb_Output_announce_title
,all screenshots checked.
)
185 $(call gb_Output_announce_bell
)
187 # removing the dependency on build for now until we can make a full build with gbuild
188 #subsequentcheck : all
190 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),SCK
,6))
191 $(call gb_Output_announce_title
,all subsequent tests checked.
)
192 $(call gb_Output_announce_bell
)
195 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),STC
,6))
196 $(call gb_Output_announce_title
,all staging tests checked.
)
197 $(call gb_Output_announce_bell
)
200 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),PFC
,6))
201 $(call gb_Output_announce_title
,all perftests checked.
)
202 $(call gb_Output_announce_bell
)
205 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(true
),UIT
,6))
206 $(call gb_Output_announce_title
,all uicheck checked.
)
207 $(call gb_Output_announce_bell
)
210 $(if
$(gb_VERBOSE
),$(call gb_Output_announce
,top level modules
: $(foreach module
,$^
,$(notdir $(module
))),$(false
),ALL
,6))
211 $(call gb_Output_announce
,loaded modules
: $(sort $(gb_Module_ALLMODULES
)),$(false
),ALL
,6)
212 $(call gb_Output_announce_title
,all cleared.
)
213 $(call gb_Output_announce_bell
)
215 check : unitcheck slowcheck
216 $(call gb_Output_announce_title
,all tests checked.
)
217 $(call gb_Output_announce_bell
)
220 export HEADLESS
= && \
221 $(if
$(filter svp
,$(SAL_USE_VCLPLUGIN
)),unset SAL_USE_VCLPLUGIN
&&) \
222 $(call gb_Module_DEBUGRUNCOMMAND
)
225 @cat
$(SRCDIR
)/solenv
/gbuild
/gbuild.help.txt
228 $(info $(strip $(gb_Module_ALLMODULES
)))
231 translations
: $(WORKDIR
)/pot.done
233 $(WORKDIR
)/pot.done
: $(foreach exec
,cfgex helpex localize propex ulfex xrmex treex
, \
234 $(call gb_Executable_get_target_for_build
,$(exec
)))
235 $(call gb_Output_announce
,$(subst .pot
,,$(subst $(WORKDIR
)/,,$@
)),$(true
),POT
,1)
236 $(call gb_Helper_abbreviate_dirs
,\
237 mkdir
-p
$(dir $@
) && $(call gb_Helper_execute
,localize
) $(SRCDIR
) $(dir $@
)/pot \
238 && $(FIND
) $(dir $@
)/pot
-type f
-printf
"%P\n" | sed
-e
"s/\.pot/.po/" | LC_ALL
=C
$(SORT
) > $(dir $@
)/LIST \
241 # enable if: no "-MODULE/" defined AND ["all" defined OR "MODULE/" defined]
242 gb_Module__symbols_enabled
= \
243 $(and
$(if
$(filter -$(1)/,$(gb_ENABLE_SYMBOLS_FOR
)),,$(true
)),\
244 $(filter all $(1)/,$(gb_ENABLE_SYMBOLS_FOR
)))
246 define gb_Module_Module
247 gb_Module_ALLMODULES
+= $(1)
248 gb_Module_MODULELOCATIONS
+= $(1):$(dir $(realpath
$(lastword
$(MAKEFILE_LIST
))))
249 gb_Module_TARGETSTACK
:= $(call gb_Module_get_target
,$(1)) $(gb_Module_TARGETSTACK
)
250 gb_Module_L10NTARGETSTACK
:= $(call gb_Module_get_l10n_target
,$(1)) $(gb_Module_L10NTARGETSTACK
)
251 gb_Module_CHECKTARGETSTACK
:= $(call gb_Module_get_check_target
,$(1)) $(gb_Module_CHECKTARGETSTACK
)
252 gb_Module_SLOWCHECKTARGETSTACK
:= $(call gb_Module_get_slowcheck_target
,$(1)) $(gb_Module_SLOWCHECKTARGETSTACK
)
253 gb_Module_SCREENSHOTTARGETSTACK
:= $(call gb_Module_get_screenshot_target
,$(1)) $(gb_Module_SCREENSHOTTARGETSTACK
)
254 gb_Module_UICHECKTARGETSTACK
:= $(call gb_Module_get_uicheck_target
,$(1)) $(gb_Module_UICHECKTARGETSTACK
)
255 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:= $(call gb_Module_get_subsequentcheck_target
,$(1)) $(gb_Module_SUBSEQUENTCHECKTARGETSTACK
)
256 gb_Module_STAGINGCHECKTARGETSTACK
:= $(call gb_Module_get_stagingcheck_target
,$(1)) $(gb_Module_STAGINGCHECKTARGETSTACK
)
257 gb_Module_PERFCHECKTARGETSTACK
:= $(call gb_Module_get_perfcheck_target
,$(1)) $(gb_Module_PERFCHECKTARGETSTACK
)
258 gb_Module_CLEANTARGETSTACK
:= $(call gb_Module_get_clean_target
,$(1)) $(gb_Module_CLEANTARGETSTACK
)
259 gb_Module_CURRENTMODULE_SYMBOLS_ENABLED
:= $(call gb_Module__symbols_enabled
,$(1))
260 gb_Module_CURRENTMODULE_NAME
:= $(1)
261 gb_Module_
$(1)_CLASSNAMES
:=
262 $(call gb_Helper_make_userfriendly_targets
,$(1),Module
)
263 $(if
$(filter-out libreoffice instsetoo_native android ios
,$(1)),\
264 $(call gb_Postprocess_register_target
,AllModulesButInstsetNative
,Module
,$(1)))
266 $(call gb_Postprocess_get_target
,AllModuleTests
) : $(call gb_Module_get_check_target
,$(1))
267 $(call gb_Postprocess_get_target
,AllModuleSlowtests
) : $(call gb_Module_get_slowcheck_target
,$(1))
268 $(call gb_Postprocess_get_target
,AllModuleScreenshots
) : $(call gb_Module_get_screenshot_target
,$(1))
269 $(call gb_Postprocess_get_target
,AllModuleUITest
) : $(call gb_Module_get_uicheck_target
,$(1))
273 # This is called inside the included file and pushes one target on each stack.
274 # This has to be called with full late evaluation ($$(eval $$(call ))) and
275 # should never be inlined ($(call )) as the calls defining it might be sourced
277 define gb_Module_register_target
278 gb_Module_CURRENTCLASSNAME
:= $(1)
279 gb_Module_CURRENTTARGET
:= $(2)
280 gb_Module_CURRENTCLEANTARGET
:= $(3)
284 # Here we include the file (in it there will be a call to gb_Module_register_target)
285 define gb_Module__read_targetfile
286 gb_Module_CURRENTCLASSNAME
:=
287 gb_Module_CURRENTTARGET
:=
288 gb_Module_CURRENTCLEANTARGET
:=
289 gb_Module_CURRENTMAKEFILE
:= $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
290 include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
291 gb_Module_CURRENTMAKEFILE
:=
292 ifneq ($$(words $$(gb_Module_CURRENTTARGET
)) $$(words $$(gb_Module_CURRENTCLEANTARGET
)),1 1)
293 $$(eval
$$(call gb_Output_error
,No
$(3) registered while reading
$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
!))
298 define gb_Module_add_target
299 $(if
$(filter AllLang
% Dictionary
% Package_registry
,$(2)),$(warning target
$(2) should be a l10n target
))
300 $(call gb_Module__read_targetfile
,$(1),$(2),target
)
302 gb_Module_
$(1)_CLASSNAMES
+= $$(gb_Module_CURRENTCLASSNAME
)
303 $(call gb_Module_get_nonl10n_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
304 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
308 gb_Module_get_classnames
= $(gb_Module_
$(1)_CLASSNAMES
)
310 define gb_Module_add_l10n_target
311 $(if
$(filter AllLang
% CustomTarget_autotextshare Dictionary
% Package_registry
,$(2)),,$(warning target
$(2) should not be a l10n target
))
312 $(call gb_Module__read_targetfile
,$(1),$(2),target
)
314 $(call gb_Module_get_l10n_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
315 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
319 define gb_Module_add_check_target
320 $(call gb_Module__read_targetfile
,$(1),$(2),check target
)
322 $(call gb_Module_get_check_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
323 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
327 define gb_Module_add_slowcheck_target
328 $(call gb_Module__read_targetfile
,$(1),$(2),slowcheck target
)
330 $(call gb_Module_get_slowcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
331 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
335 define gb_Module_add_screenshot_target
336 $(call gb_Module__read_targetfile
,$(1),$(2),screenshot target
)
338 $(call gb_Module_get_screenshot_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
339 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
343 # has order dependency on AllModulesButInstsetNative to be able to run
344 # subsequentcheck in the same make process on "make check"
345 define gb_Module_add_subsequentcheck_target
346 $(call gb_Module__read_targetfile
,$(1),$(2),subsequentcheck target
)
348 $(call gb_Module_get_subsequentcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
349 $$(gb_Module_CURRENTTARGET
) :| \
350 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
351 $(call gb_Package_get_target
,instsetoo_native_setup
) \
352 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
353 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
357 define gb_Module_add_stagingcheck_target
358 $(info adding stagingcheck
$(1) $(2))
359 $(call gb_Module__read_targetfile
,$(1),$(2),stagingcheck target
)
361 $(call gb_Module_get_stagingcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
362 $$(gb_Module_CURRENTTARGET
) :| \
363 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
364 $(call gb_Package_get_target
,instsetoo_native_setup
) \
365 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
366 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
370 define gb_Module_add_perfcheck_target
371 $(call gb_Module__read_targetfile
,$(1),$(2),perfcheck target
)
373 $(call gb_Module_get_perfcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
374 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
378 define gb_Module_add_uicheck_target
379 $(call gb_Module__read_targetfile
,$(1),$(2),uicheck target
)
381 $(call gb_Module_get_uicheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
382 $$(gb_Module_CURRENTTARGET
) :| \
383 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
384 $(call gb_Package_get_target
,instsetoo_native_setup
) \
385 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
386 $(call gb_Module_get_uicheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
387 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
391 define gb_Module__modulefile
392 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2)/Module_
$(notdir $(2)).mk
395 define gb_Module_add_moduledir
396 $(if
$(wildcard $(call gb_Module__modulefile
,$(1),$(2))),,$(call gb_Output_error
,Module does not exist
: $(call gb_Module__modulefile
,$(1),$(2))))
397 ifeq (,$(filter $(call gb_Module__modulefile
,$(1),$(2)),$(MAKEFILE_LIST
)))
398 include $(call gb_Module__modulefile
,$(1),$(2))
399 $(call gb_Module_get_target
,$(1)) : $$(firstword $$(gb_Module_TARGETSTACK
))
400 $(call gb_Module_get_l10n_target
,$(1)) : $$(firstword $$(gb_Module_L10NTARGETSTACK
))
401 $(call gb_Module_get_check_target
,$(1)) : $$(firstword $$(gb_Module_CHECKTARGETSTACK
))
402 $(call gb_Module_get_slowcheck_target
,$(1)) : $$(firstword $$(gb_Module_SLOWCHECKTARGETSTACK
))
403 $(call gb_Module_get_screenshot_target
,$(1)) : $$(firstword $$(gb_Module_SCREENSHOTTARGETSTACK
))
404 $(call gb_Module_get_subsequentcheck_target
,$(1)) : $$(firstword $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
405 $(call gb_Module_get_stagingcheck_target
,$(1)) : $$(firstword $$(gb_Module_STAGINGCHECKTARGETSTACK
))
406 $(call gb_Module_get_perfcheck_target
,$(1)) : $$(firstword $$(gb_Module_PERFCHECKTARGETSTACK
))
407 $(call gb_Module_get_uicheck_target
,$(1)) : $$(firstword $$(gb_Module_UICHECKTARGETSTACK
))
408 $(call gb_Module_get_clean_target
,$(1)) : $$(firstword $$(gb_Module_CLEANTARGETSTACK
))
409 gb_Module_TARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_TARGETSTACK
)),$$(gb_Module_TARGETSTACK
))
410 gb_Module_L10NTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_L10NTARGETSTACK
)),$$(gb_Module_L10NTARGETSTACK
))
411 gb_Module_CHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CHECKTARGETSTACK
)),$$(gb_Module_CHECKTARGETSTACK
))
412 gb_Module_SLOWCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SLOWCHECKTARGETSTACK
)),$$(gb_Module_SLOWCHECKTARGETSTACK
))
413 gb_Module_SCREENSHOTTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SCREENSHOTTARGETSTACK
)),$$(gb_Module_SCREENSHOTTARGETSTACK
))
414 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
)),$$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
415 gb_Module_STAGINGCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_STAGINGCHECKTARGETSTACK
)),$$(gb_Module_STAGINGCHECKTARGETSTACK
))
416 gb_Module_PERFCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_PERFCHECKTARGETSTACK
)),$$(gb_Module_PERFCHECKTARGETSTACK
))
417 gb_Module_UICHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_UICHECKTARGETSTACK
)),$$(gb_Module_UICHECKTARGETSTACK
))
418 gb_Module_CLEANTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CLEANTARGETSTACK
)),$$(gb_Module_CLEANTARGETSTACK
))
423 define gb_Module_add_targets
424 $(call gb_Module_get_target
,$(1)) : $(call gb_Module_get_nonl10n_target
,$(1))
425 $(foreach target
,$(2),$(call gb_Module_add_target
,$(1),$(target
)))
429 define gb_Module_add_l10n_targets
430 $(call gb_Module_get_target
,$(1)) : $(call gb_Module_get_l10n_target
,$(1))
431 $(foreach target
,$(2),$(call gb_Module_add_l10n_target
,$(1),$(target
)))
435 gb_Module_add_targets_for_build
= $(call gb_Module_add_targets
,$(1),$(2))
437 define gb_Module_add_check_targets
438 $(foreach target
,$(2),$(call gb_Module_add_check_target
,$(1),$(target
)))
442 define gb_Module_add_slowcheck_targets
443 $(foreach target
,$(2),$(call gb_Module_add_slowcheck_target
,$(1),$(target
)))
447 define gb_Module_add_screenshot_targets
448 $(foreach target
,$(2),$(call gb_Module_add_screenshot_target
,$(1),$(target
)))
452 define gb_Module_add_subsequentcheck_targets
453 $(foreach target
,$(2),$(call gb_Module_add_subsequentcheck_target
,$(1),$(target
)))
457 define gb_Module_add_stagingcheck_targets
458 $(foreach target
,$(2),$(call gb_Module_add_stagingcheck_target
,$(1),$(target
)))
462 define gb_Module_add_perfcheck_targets
463 $(foreach target
,$(2),$(call gb_Module_add_perfcheck_target
,$(1),$(target
)))
467 define gb_Module_add_moduledirs
468 $(foreach target
,$(sort $(2)),$(call gb_Module_add_moduledir
,$(1),$(target
)))
472 define gb_Module_add_uicheck_targets
473 $(foreach target
,$(2),$(call gb_Module_add_uicheck_target
,$(1),$(target
)))
477 define gb_Module_make_global_targets
478 ifneq ($$(gb_Module_TARGETSTACK
),)
479 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
!1))
484 build
: build-non-l10n-only build-l10n-only
485 build-non-l10n-only
: $$(firstword $$(gb_Module_TARGETSTACK
))
486 build-l10n-only
: $$(firstword $$(gb_Module_L10NTARGETSTACK
))
487 unitcheck
: $$(firstword $$(gb_Module_CHECKTARGETSTACK
))
488 slowcheck
: $$(firstword $$(gb_Module_SLOWCHECKTARGETSTACK
))
489 screenshot
: $$(firstword $$(gb_Module_SCREENSHOTTARGETSTACK
))
490 ifeq ($(WINDOWS_BUILD_SIGNING
),TRUE
)
491 screenshot
: $(call gb_CustomTarget_get_workdir
,postprocess
/signing
)/signing.done
493 subsequentcheck
: $$(firstword $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
494 stagingcheck
: $$(firstword $$(gb_Module_STAGINGCHECKTARGETSTACK
))
495 perfcheck
: $$(firstword $$(gb_Module_PERFCHECKTARGETSTACK
))
496 uicheck
: build
$$(firstword $$(gb_Module_UICHECKTARGETSTACK
))
497 clean : $$(firstword $$(gb_Module_CLEANTARGETSTACK
))
499 ifneq ($$(words $$(gb_Module_TARGETSTACK
)),1)
500 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
! $(gb_Module_TARGETSTACK
)))
503 gb_Module_TARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_TARGETSTACK
)),$$(gb_Module_TARGETSTACK
))
504 gb_Module_L10NTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_L10NTARGETSTACK
)),$$(gb_Module_L10NTARGETSTACK
))
505 gb_Module_CHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CHECKTARGETSTACK
)),$$(gb_Module_CHECKTARGETSTACK
))
506 gb_Module_SLOWCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SLOWCHECKTARGETSTACK
)),$$(gb_Module_SLOWCHECKTARGETSTACK
))
507 gb_Module_SCREENSHOTTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SCREENSHOTTARGETSTACK
)),$$(gb_Module_SCREENSHOTTARGETSTACK
))
508 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
)),$$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
509 gb_Module_UICHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_UICHECKTARGETSTACK
)),$$(gb_Module_UICHECKTARGETSTACK
))
510 gb_Module_STAGINGCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_STAGINGCHECKTARGETSTACK
)),$$(gb_Module_STAGINGCHECKTARGETSTACK
))
511 gb_Module_PERFCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_PERFCHECKTARGETSTACK
)),$$(gb_Module_PERFCHECKTARGETSTACK
))
512 gb_Module_CLEANTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CLEANTARGETSTACK
)),$$(gb_Module_CLEANTARGETSTACK
))
514 ifneq ($$(and
$$(gb_Module_TARGETSTACK
),$$(gb_Module_CHECKTARGETSTACK
),$$(gb_Module_SLOWCHECKTARGETSTACK
),$$(gb_Module_SCREENSHOTTARGETSTACK
),$$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
),$$(gb_Module_UICHECKTARGETSTACK
),$$(gb_Module_STAGINGCHECKTARGETSTACK
),$$(gb_Module_PERFCHECKTARGETSTACK
),$$(gb_Module_L10NTARGETSTACK
)),)
515 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
!3))
518 $$(eval
$$(gb_Extensions_final_hook
))
521 # vim: set noet sw=4: