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 $(call gb_Helper_make_userfriendly_targets
,$(1),Module
)
262 $(if
$(filter-out libreoffice instsetoo_native android ios
,$(1)),\
263 $(call gb_Postprocess_register_target
,AllModulesButInstsetNative
,Module
,$(1)))
265 $(call gb_Postprocess_get_target
,AllModuleTests
) : $(call gb_Module_get_check_target
,$(1))
266 $(call gb_Postprocess_get_target
,AllModuleSlowtests
) : $(call gb_Module_get_slowcheck_target
,$(1))
267 $(call gb_Postprocess_get_target
,AllModuleScreenshots
) : $(call gb_Module_get_screenshot_target
,$(1))
268 $(call gb_Postprocess_get_target
,AllModuleUITest
) : $(call gb_Module_get_uicheck_target
,$(1))
272 # This is called inside the included file and pushes one target on each stack.
273 # This has to be called with full late evaluation ($$(eval $$(call ))) and
274 # should never be inlined ($(call )) as the calls defining it might be sourced
276 define gb_Module_register_target
277 gb_Module_CURRENTTARGET
:= $(1)
278 gb_Module_CURRENTCLEANTARGET
:= $(2)
282 # Here we include the file (in it there will be a call to gb_Module_register_target)
283 define gb_Module__read_targetfile
284 gb_Module_CURRENTTARGET
:=
285 gb_Module_CURRENTCLEANTARGET
:=
286 gb_Module_CURRENTMAKEFILE
:= $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
287 include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
288 gb_Module_CURRENTMAKEFILE
:=
289 ifneq ($$(words $$(gb_Module_CURRENTTARGET
)) $$(words $$(gb_Module_CURRENTCLEANTARGET
)),1 1)
290 $$(eval
$$(call gb_Output_error
,No
$(3) registered while reading
$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))$(2).mk
!))
295 define gb_Module_add_target
296 $(if
$(filter AllLang
% Dictionary
% Package_registry
,$(2)),$(warning target
$(2) should be a l10n target
))
297 $(call gb_Module__read_targetfile
,$(1),$(2),target
)
299 $(call gb_Module_get_nonl10n_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
300 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
304 define gb_Module_add_l10n_target
305 $(if
$(filter AllLang
% CustomTarget_autotextshare Dictionary
% Package_registry
,$(2)),,$(warning target
$(2) should not be a l10n target
))
306 $(call gb_Module__read_targetfile
,$(1),$(2),target
)
308 $(call gb_Module_get_l10n_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
309 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
313 define gb_Module_add_check_target
314 $(call gb_Module__read_targetfile
,$(1),$(2),check target
)
316 $(call gb_Module_get_check_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
317 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
321 define gb_Module_add_slowcheck_target
322 $(call gb_Module__read_targetfile
,$(1),$(2),slowcheck target
)
324 $(call gb_Module_get_slowcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
325 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
329 define gb_Module_add_screenshot_target
330 $(call gb_Module__read_targetfile
,$(1),$(2),screenshot target
)
332 $(call gb_Module_get_screenshot_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
333 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
337 # has order dependency on AllModulesButInstsetNative to be able to run
338 # subsequentcheck in the same make process on "make check"
339 define gb_Module_add_subsequentcheck_target
340 $(call gb_Module__read_targetfile
,$(1),$(2),subsequentcheck target
)
342 $(call gb_Module_get_subsequentcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
343 $$(gb_Module_CURRENTTARGET
) :| \
344 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
345 $(call gb_Package_get_target
,instsetoo_native_setup
) \
346 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
347 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
351 define gb_Module_add_stagingcheck_target
352 $(info adding stagingcheck
$(1) $(2))
353 $(call gb_Module__read_targetfile
,$(1),$(2),stagingcheck target
)
355 $(call gb_Module_get_stagingcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
356 $$(gb_Module_CURRENTTARGET
) :| \
357 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
358 $(call gb_Package_get_target
,instsetoo_native_setup
) \
359 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
360 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
364 define gb_Module_add_perfcheck_target
365 $(call gb_Module__read_targetfile
,$(1),$(2),perfcheck target
)
367 $(call gb_Module_get_perfcheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
368 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
372 define gb_Module_add_uicheck_target
373 $(call gb_Module__read_targetfile
,$(1),$(2),uicheck target
)
375 $(call gb_Module_get_uicheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
376 $$(gb_Module_CURRENTTARGET
) :| \
377 $(call gb_Postprocess_get_target
,AllModulesButInstsetNative
) \
378 $(call gb_Package_get_target
,instsetoo_native_setup
) \
379 $(call gb_Package_get_target
,instsetoo_native_setup_ure
)
380 $(call gb_Module_get_uicheck_target
,$(1)) : $$(gb_Module_CURRENTTARGET
)
381 $(call gb_Module_get_clean_target
,$(1)) : $$(gb_Module_CURRENTCLEANTARGET
)
385 define gb_Module__modulefile
386 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS
)))/$(2)/Module_
$(2).mk
389 define gb_Module_add_moduledir
390 $(if
$(wildcard $(call gb_Module__modulefile
,$(1),$(2))),,$(call gb_Output_error
,Module does not exist
: $(call gb_Module__modulefile
,$(1),$(2))))
391 include $(call gb_Module__modulefile
,$(1),$(2))
392 $(call gb_Module_get_target
,$(1)) : $$(firstword $$(gb_Module_TARGETSTACK
))
393 $(call gb_Module_get_l10n_target
,$(1)) : $$(firstword $$(gb_Module_L10NTARGETSTACK
))
394 $(call gb_Module_get_check_target
,$(1)) : $$(firstword $$(gb_Module_CHECKTARGETSTACK
))
395 $(call gb_Module_get_slowcheck_target
,$(1)) : $$(firstword $$(gb_Module_SLOWCHECKTARGETSTACK
))
396 $(call gb_Module_get_screenshot_target
,$(1)) : $$(firstword $$(gb_Module_SCREENSHOTTARGETSTACK
))
397 $(call gb_Module_get_subsequentcheck_target
,$(1)) : $$(firstword $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
398 $(call gb_Module_get_stagingcheck_target
,$(1)) : $$(firstword $$(gb_Module_STAGINGCHECKTARGETSTACK
))
399 $(call gb_Module_get_perfcheck_target
,$(1)) : $$(firstword $$(gb_Module_PERFCHECKTARGETSTACK
))
400 $(call gb_Module_get_uicheck_target
,$(1)) : $$(firstword $$(gb_Module_UICHECKTARGETSTACK
))
401 $(call gb_Module_get_clean_target
,$(1)) : $$(firstword $$(gb_Module_CLEANTARGETSTACK
))
402 gb_Module_TARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_TARGETSTACK
)),$$(gb_Module_TARGETSTACK
))
403 gb_Module_L10NTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_L10NTARGETSTACK
)),$$(gb_Module_L10NTARGETSTACK
))
404 gb_Module_CHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CHECKTARGETSTACK
)),$$(gb_Module_CHECKTARGETSTACK
))
405 gb_Module_SLOWCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SLOWCHECKTARGETSTACK
)),$$(gb_Module_SLOWCHECKTARGETSTACK
))
406 gb_Module_SCREENSHOTTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SCREENSHOTTARGETSTACK
)),$$(gb_Module_SCREENSHOTTARGETSTACK
))
407 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
)),$$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
408 gb_Module_STAGINGCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_STAGINGCHECKTARGETSTACK
)),$$(gb_Module_STAGINGCHECKTARGETSTACK
))
409 gb_Module_PERFCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_PERFCHECKTARGETSTACK
)),$$(gb_Module_PERFCHECKTARGETSTACK
))
410 gb_Module_UICHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_UICHECKTARGETSTACK
)),$$(gb_Module_UICHECKTARGETSTACK
))
411 gb_Module_CLEANTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CLEANTARGETSTACK
)),$$(gb_Module_CLEANTARGETSTACK
))
415 define gb_Module_add_targets
416 $(call gb_Module_get_target
,$(1)) : $(call gb_Module_get_nonl10n_target
,$(1))
417 $(foreach target
,$(2),$(call gb_Module_add_target
,$(1),$(target
)))
421 define gb_Module_add_l10n_targets
422 $(call gb_Module_get_target
,$(1)) : $(call gb_Module_get_l10n_target
,$(1))
423 $(foreach target
,$(2),$(call gb_Module_add_l10n_target
,$(1),$(target
)))
427 gb_Module_add_targets_for_build
= $(call gb_Module_add_targets
,$(1),$(2))
429 define gb_Module_add_check_targets
430 $(foreach target
,$(2),$(call gb_Module_add_check_target
,$(1),$(target
)))
434 define gb_Module_add_slowcheck_targets
435 $(foreach target
,$(2),$(call gb_Module_add_slowcheck_target
,$(1),$(target
)))
439 define gb_Module_add_screenshot_targets
440 $(foreach target
,$(2),$(call gb_Module_add_screenshot_target
,$(1),$(target
)))
444 define gb_Module_add_subsequentcheck_targets
445 $(foreach target
,$(2),$(call gb_Module_add_subsequentcheck_target
,$(1),$(target
)))
449 define gb_Module_add_stagingcheck_targets
450 $(foreach target
,$(2),$(call gb_Module_add_stagingcheck_target
,$(1),$(target
)))
454 define gb_Module_add_perfcheck_targets
455 $(foreach target
,$(2),$(call gb_Module_add_perfcheck_target
,$(1),$(target
)))
459 define gb_Module_add_moduledirs
460 $(foreach target
,$(sort $(2)),$(call gb_Module_add_moduledir
,$(1),$(target
)))
464 define gb_Module_add_uicheck_targets
465 $(foreach target
,$(2),$(call gb_Module_add_uicheck_target
,$(1),$(target
)))
469 define gb_Module_make_global_targets
470 ifneq ($$(gb_Module_TARGETSTACK
),)
471 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
!1))
476 build
: build-non-l10n-only build-l10n-only
477 build-non-l10n-only
: $$(firstword $$(gb_Module_TARGETSTACK
))
478 build-l10n-only
: $$(firstword $$(gb_Module_L10NTARGETSTACK
))
479 unitcheck
: $$(firstword $$(gb_Module_CHECKTARGETSTACK
))
480 slowcheck
: $$(firstword $$(gb_Module_SLOWCHECKTARGETSTACK
))
481 screenshot
: $$(firstword $$(gb_Module_SCREENSHOTTARGETSTACK
))
482 ifeq ($(WINDOWS_BUILD_SIGNING
),TRUE
)
483 screenshot
: $(call gb_CustomTarget_get_workdir
,postprocess
/signing
)/signing.done
485 subsequentcheck
: $$(firstword $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
486 stagingcheck
: $$(firstword $$(gb_Module_STAGINGCHECKTARGETSTACK
))
487 perfcheck
: $$(firstword $$(gb_Module_PERFCHECKTARGETSTACK
))
488 uicheck
: build
$$(firstword $$(gb_Module_UICHECKTARGETSTACK
))
489 clean : $$(firstword $$(gb_Module_CLEANTARGETSTACK
))
491 ifneq ($$(words $$(gb_Module_TARGETSTACK
)),1)
492 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
! $(gb_Module_TARGETSTACK
)))
495 gb_Module_TARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_TARGETSTACK
)),$$(gb_Module_TARGETSTACK
))
496 gb_Module_L10NTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_L10NTARGETSTACK
)),$$(gb_Module_L10NTARGETSTACK
))
497 gb_Module_CHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CHECKTARGETSTACK
)),$$(gb_Module_CHECKTARGETSTACK
))
498 gb_Module_SLOWCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SLOWCHECKTARGETSTACK
)),$$(gb_Module_SLOWCHECKTARGETSTACK
))
499 gb_Module_SCREENSHOTTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SCREENSHOTTARGETSTACK
)),$$(gb_Module_SCREENSHOTTARGETSTACK
))
500 gb_Module_SUBSEQUENTCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
)),$$(gb_Module_SUBSEQUENTCHECKTARGETSTACK
))
501 gb_Module_UICHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_UICHECKTARGETSTACK
)),$$(gb_Module_UICHECKTARGETSTACK
))
502 gb_Module_STAGINGCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_STAGINGCHECKTARGETSTACK
)),$$(gb_Module_STAGINGCHECKTARGETSTACK
))
503 gb_Module_PERFCHECKTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_PERFCHECKTARGETSTACK
)),$$(gb_Module_PERFCHECKTARGETSTACK
))
504 gb_Module_CLEANTARGETSTACK
:= $$(wordlist
2,$$(words $$(gb_Module_CLEANTARGETSTACK
)),$$(gb_Module_CLEANTARGETSTACK
))
506 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
)),)
507 $$(eval
$$(call gb_Output_error
,Corrupted module target stack
!3))
510 $$(eval
$$(gb_Extensions_final_hook
))
513 # vim: set noet sw=4: