Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 412 lines (334 sloc) 12.74 kB
d9160e1 Bug 757018 - upgrade license to MPL 2.
Gervase Markham authored
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
4
5 # Build a comm application (Mozilla calendar, mail or suite).
6 #
7 # To build a tree,
8 # 1. hg clone http://hg.mozilla.org/comm-central comm
9 # 2. cd comm
10 # 3. python client.py checkout
11 # 4. create your .mozconfig file with
12 # ac_add_options --enable-application=suite
13 # (or mail, or calendar)
14 # 5. gmake -f client.mk
15 #
16 # Other targets (gmake -f client.mk [targets...]),
17 # build
18 # clean
19 # distclean
20 #
f8c4658 Bug 613224 - Bad link for atlbase.h. r=Callek
Austin King authored
21 # See http://developer.mozilla.org/en/Build_Documentation for
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
22 # more information.
23 #
24 # Options:
25 # MOZ_BUILD_PROJECTS - Build multiple projects in subdirectories
26 # of MOZ_OBJDIR
27 # MOZ_OBJDIR - Destination object directory
28 # MOZ_MAKE_FLAGS - Flags to pass to $(MAKE)
29 # MOZ_PREFLIGHT_ALL } - Makefiles to run before any project in
30 # MOZ_PREFLIGHT } MOZ_BUILD_PROJECTS, before each project, after
31 # MOZ_POSTFLIGHT } each project, and after all projects; these
32 # MOZ_POSTFLIGHT_ALL } variables contain space-separated lists
33 # MOZ_UNIFY_BDATE - Set to use the same bdate for each project in
34 # MOZ_BUILD_PROJECTS
35 #
36 #######################################################################
37 # Defines
38
39 comma := ,
40
2c0914a Bug 509147 - Port |Bug 483856 - Use $(CURDIR) to make pymake happy| t…
Serge Gautherie authored
41 CWD := $(CURDIR)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
42 ifneq (1,$(words $(CWD)))
43 $(error The mozilla directory cannot be located in a path with spaces.)
44 endif
45
46 ifeq "$(CWD)" "/"
47 CWD := /.
48 endif
49
50 ifndef TOPSRCDIR
51 ifeq (,$(wildcard client.mk))
c66041f Bug 592575 - Port bug 572529 to MailNews core. (make pymake work fro…
Edmund Wong authored
52 TOPSRCDIR := $(patsubst %/,%,$(dir $(MAKEFILE_LIST)))
53 MOZ_OBJDIR = .
54 else
700deba @Callek Bug 607775 - Finalize missed comm-central sync for client.mk. r=KaiRo
Callek authored
55 TOPSRCDIR := $(CWD)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
56 endif
57 endif
58
2f33964 @KaiRo-at bug 450967 - Check for alternate autoconf-2.13 names in comm-central …
KaiRo-at authored
59 # try to find autoconf 2.13 - discard errors from 'which'
60 # MacOS X 10.4 sends "no autoconf*" errors to stdout, discard those via grep
61 AUTOCONF ?= $(shell which autoconf-2.13 autoconf2.13 autoconf213 2>/dev/null | grep -v '^no autoconf' | head -1)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
62
700deba @Callek Bug 607775 - Finalize missed comm-central sync for client.mk. r=KaiRo
Callek authored
63 ifeq (,$(strip $(AUTOCONF)))
64 AUTOCONF=$(error Couldn't find autoconf 2.13)
65 endif
66
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
67 MKDIR := mkdir
68 SH := /bin/sh
69 ifndef MAKE
70 MAKE := gmake
71 endif
72 PERL ?= perl
73 PYTHON ?= python
74
8b0f0a8 Bug 656049 - teach comm-central client.mk to invoke client.py. p=call…
John Hopkins authored
75 CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
76 ifdef CONFIG_GUESS_SCRIPT
77 CONFIG_GUESS = $(shell $(CONFIG_GUESS_SCRIPT))
78 endif
79
80
81 ####################################
82 # Sanity checks
83
8f45616 Bug 716224 - Port bug 643167 and bug 707512 for better pymake support…
Jens Hatlak authored
84 ifneq (,$(findstring mingw,$(CONFIG_GUESS)))
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
85 # check for CRLF line endings
86 ifneq (0,$(shell $(PERL) -e 'binmode(STDIN); while (<STDIN>) { if (/\r/) { print "1"; exit } } print "0"' < $(TOPSRCDIR)/client.mk))
87 $(error This source tree appears to have Windows-style line endings. To \
88 convert it to Unix-style line endings, run \
89 "python mozilla/build/win32/mozilla-dos2unix.py")
90 endif
91 endif
92
93 ####################################
94 # Load mozconfig Options
95
96 # See build pages, http://www.mozilla.org/build/ for how to set up mozconfig.
97
8b0f0a8 Bug 656049 - teach comm-central client.mk to invoke client.py. p=call…
John Hopkins authored
98 MOZCONFIG_LOADER := build/autoconf/mozconfig2client-mk
99 MOZCONFIG_FINDER := build/autoconf/mozconfig-find
100 MOZCONFIG_MODULES := build/unix/uniq.pl
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
101
0ec205e Port bug 762358 - .mozconfig changes don't cause configure to run - t…
Mark Banner authored
102 define CR
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
103
0ec205e Port bug 762358 - .mozconfig changes don't cause configure to run - t…
Mark Banner authored
104
105 endef
106
107 $(eval $(subst ||,$(CR),$(shell $(TOPSRCDIR)/$(MOZCONFIG_LOADER) $(TOPSRCDIR) 2> $(TOPSRCDIR)/.mozconfig.out | sed 's/$$/||/')))
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
108
109 ifndef MOZ_OBJDIR
5cad945 @Callek Bug 589507 - Port Bug 578563 |Make objdir builds the default in clien…
Callek authored
110 MOZ_OBJDIR = obj-$(CONFIG_GUESS)
8f45616 Bug 716224 - Port bug 643167 and bug 707512 for better pymake support…
Jens Hatlak authored
111 else
112 # On Windows Pymake builds check MOZ_OBJDIR doesn't start with "/"
113 ifneq (,$(findstring mingw,$(CONFIG_GUESS)))
114 ifeq (1_a,$(.PYMAKE)_$(firstword a$(subst /, ,$(MOZ_OBJDIR))))
115 $(error For Windows Pymake builds, MOZ_OBJDIR must be a Windows [and not MSYS] style path.)
116 endif
117 endif
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
118 endif
5cad945 @Callek Bug 589507 - Port Bug 578563 |Make objdir builds the default in clien…
Callek authored
119
120 ifdef MOZ_BUILD_PROJECTS
121
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
122 ifdef MOZ_CURRENT_PROJECT
123 OBJDIR = $(MOZ_OBJDIR)/$(MOZ_CURRENT_PROJECT)
124 MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
125 BUILD_PROJECT_ARG = MOZ_BUILD_APP=$(MOZ_CURRENT_PROJECT)
126 else
127 OBJDIR = $(error Cannot find the OBJDIR when MOZ_CURRENT_PROJECT is not set.)
128 MOZ_MAKE = $(error Cannot build in the OBJDIR when MOZ_CURRENT_PROJECT is not set.)
129 endif
130
131 else # MOZ_BUILD_PROJECTS
132
5cad945 @Callek Bug 589507 - Port Bug 578563 |Make objdir builds the default in clien…
Callek authored
133 OBJDIR = $(MOZ_OBJDIR)
134 MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
135
136 endif # MOZ_BUILD_PROJECTS
137
54ccbd9 @KaiRo-at bug 452504 - port bug 97954, bug 394901, bug 451466, and bug 450194 c…
KaiRo-at authored
138 # 'configure' scripts generated by autoconf.
c0fa27c @KaiRo-at comm-central bustage fix from bug 97954 (autoconf build environment f…
KaiRo-at authored
139 CONFIGURES := $(TOPSRCDIR)/configure
140 CONFIGURES += $(TOPSRCDIR)/mozilla/configure
141 CONFIGURES += $(TOPSRCDIR)/mozilla/js/src/configure
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
142
143 #######################################################################
144 # Rules
145
146 # The default rule is build
147 build::
148
6ae98b6 @gozer Bug 656049 - teach comm-central client.mk to invoke client.py. r=Call…
gozer authored
149 # These targets are candidates for auto-running client.py
409988a @gozer Bug 695812 - client.mk with RUN_CLIENT_PY doesn't work with mozconfig…
gozer authored
150
151 ifeq (01,$(MAKELEVEL)$(if $(ALWAYS_RUN_CLIENT_PY),1,))
152
153 build profiledbuild configure:: run_client_py
154 $(MAKE) -f $(TOPSRCDIR)/client.mk $@
155 else
6ae98b6 @gozer Bug 656049 - teach comm-central client.mk to invoke client.py. r=Call…
gozer authored
156
157
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
158 # Print out any options loaded from mozconfig.
159 all build clean depend distclean export libs install realclean::
160 @if test -f .mozconfig.out; then \
161 cat .mozconfig.out; \
162 rm -f .mozconfig.out; \
163 else true; \
164 fi
165
166 # Windows equivalents
167 build_all: build
168 build_all_dep: alldep
169 build_all_depend: alldep
170 clobber clobber_all: clean
171
172 # Do everything from scratch
173 everything: clean build
174
3d174ff @Nomis101 Bug 448515 - Instill client.mk what profiledbuild means on comm-centr…
Nomis101 authored
175 ####################################
176 # Profile-Guided Optimization
177 # To use this, you should set the following variables in your mozconfig
178 # mk_add_options PROFILE_GEN_SCRIPT=/path/to/profile-script
179 #
180 # The profile script should exercise the functionality to be included
181 # in the profile feedback.
182 #
183 # This is up here, outside of the MOZ_CURRENT_PROJECT logic so that this
184 # is usable in multi-pass builds, where you might not have a runnable
185 # application until all the build passes and postflight scripts have run.
186 ifdef MOZ_OBJDIR
187 PGO_OBJDIR = $(MOZ_OBJDIR)
188 else
189 PGO_OBJDIR := $(TOPSRCDIR)
190 endif
191
192 profiledbuild::
193 $(MAKE) -f $(TOPSRCDIR)/client.mk build MOZ_PROFILE_GENERATE=1
d39f6a2 @rail Bug 730328 - Sign Thunderbird builds using auto-signing - port build …
rail authored
194 $(MAKE) -C $(PGO_OBJDIR) stage-package
3d174ff @Nomis101 Bug 448515 - Instill client.mk what profiledbuild means on comm-centr…
Nomis101 authored
195 OBJDIR=${PGO_OBJDIR} $(PROFILE_GEN_SCRIPT)
196 $(MAKE) -f $(TOPSRCDIR)/client.mk maybe_clobber_profiledbuild
197 $(MAKE) -f $(TOPSRCDIR)/client.mk build MOZ_PROFILE_USE=1
198
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
199 #####################################################
200 # Build date unification
201
202 ifdef MOZ_UNIFY_BDATE
203 ifndef MOZ_BUILD_DATE
204 ifdef MOZ_BUILD_PROJECTS
205 MOZ_BUILD_DATE = $(shell $(PYTHON) $(TOPSRCDIR)/mozilla/toolkit/xre/make-platformini.py --print-buildid)
206 export MOZ_BUILD_DATE
207 endif
208 endif
209 endif
210
211 #####################################################
212 # Preflight, before building any project
213
214 build alldep preflight_all::
215 ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_PREFLIGHT_ALL),,1))
216 # Don't run preflight_all for individual projects in multi-project builds
217 # (when MOZ_CURRENT_PROJECT is set.)
218 ifndef MOZ_BUILD_PROJECTS
219 # Building a single project, OBJDIR is usable.
220 set -e; \
221 for mkfile in $(MOZ_PREFLIGHT_ALL); do \
222 $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
223 done
224 else
225 # OBJDIR refers to the project-specific OBJDIR, which is not available at
226 # this point when building multiple projects. Only MOZ_OBJDIR is available.
227 set -e; \
228 for mkfile in $(MOZ_PREFLIGHT_ALL); do \
229 $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS="$(MOZ_BUILD_PROJECTS)"; \
230 done
231 endif
232 endif
233
234 # If we're building multiple projects, but haven't specified which project,
235 # loop through them.
236
237 ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_BUILD_PROJECTS),,1))
700deba @Callek Bug 607775 - Finalize missed comm-central sync for client.mk. r=KaiRo
Callek authored
238 configure depend build install export libs clean realclean distclean alldep preflight postflight maybe_clobber_profiledbuild upload sdk::
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
239 set -e; \
240 for app in $(MOZ_BUILD_PROJECTS); do \
241 $(MAKE) -f $(TOPSRCDIR)/client.mk $@ MOZ_CURRENT_PROJECT=$$app; \
242 done
243
244 else
245
246 # MOZ_CURRENT_PROJECT: either doing a single-project build, or building an
247 # individual project in a multi-project build.
248
249 ####################################
250 # Configure
251
4689511 Bug 684617 client.mk runs configure twice r=Callek
Neil Rashbrook authored
252 MAKEFILE = $(wildcard $(OBJDIR)/Makefile)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
253 CONFIG_STATUS = $(wildcard $(OBJDIR)/config.status)
254 CONFIG_CACHE = $(wildcard $(OBJDIR)/config.cache)
255
256 EXTRA_CONFIG_DEPS := \
257 $(TOPSRCDIR)/aclocal.m4 \
258 $(TOPSRCDIR)/mozilla/aclocal.m4 \
259 $(wildcard $(TOPSRCDIR)/mozilla/build/autoconf/*.m4) \
c0fa27c @KaiRo-at comm-central bustage fix from bug 97954 (autoconf build environment f…
KaiRo-at authored
260 $(TOPSRCDIR)/mozilla/js/src/aclocal.m4 \
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
261 $(NULL)
262
54ccbd9 @KaiRo-at bug 452504 - port bug 97954, bug 394901, bug 451466, and bug 450194 c…
KaiRo-at authored
263 $(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
264 @echo Generating $@ using autoconf
54ccbd9 @KaiRo-at bug 452504 - port bug 97954, bug 394901, bug 451466, and bug 450194 c…
KaiRo-at authored
265 cd $(@D); $(AUTOCONF)
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
266
267 CONFIG_STATUS_DEPS := \
54ccbd9 @KaiRo-at bug 452504 - port bug 97954, bug 394901, bug 451466, and bug 450194 c…
KaiRo-at authored
268 $(wildcard $(CONFIGURES)) \
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
269 $(TOPSRCDIR)/allmakefiles.sh \
270 $(TOPSRCDIR)/mozilla/allmakefiles.sh \
271 $(wildcard $(TOPSRCDIR)/mozilla/nsprpub/configure) \
272 $(wildcard $(TOPSRCDIR)/mozilla/config/milestone.txt) \
5038b58 @Callek Bug 615459 - configure deps not set correctly since LDAP move to hg. …
Callek authored
273 $(wildcard $(TOPSRCDIR)/ldap/sdks/c-sdk/configure) \
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
274 $(wildcard $(addsuffix confvars.sh,$(wildcard $(TOPSRCDIR)/*/))) \
275 $(NULL)
276
8f45616 Bug 716224 - Port bug 643167 and bug 707512 for better pymake support…
Jens Hatlak authored
277 CONFIGURE_ENV_ARGS += \
278 MAKE="$(MAKE)" \
279 $(NULL)
280
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
281 # configure uses the program name to determine @srcdir@. Calling it without
282 # $(TOPSRCDIR) will set @srcdir@ to "."; otherwise, it is set to the full
283 # path of $(TOPSRCDIR).
284 ifeq ($(TOPSRCDIR),$(OBJDIR))
285 CONFIGURE = ./configure
286 else
287 CONFIGURE = $(TOPSRCDIR)/configure
288 endif
289
54ccbd9 @KaiRo-at bug 452504 - port bug 97954, bug 394901, bug 451466, and bug 450194 c…
KaiRo-at authored
290 configure-files: $(CONFIGURES)
291
292 configure:: configure-files
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
293 ifdef MOZ_BUILD_PROJECTS
294 @if test ! -d $(MOZ_OBJDIR); then $(MKDIR) $(MOZ_OBJDIR); else true; fi
295 endif
296 @if test ! -d $(OBJDIR); then $(MKDIR) $(OBJDIR); else true; fi
297 @echo cd $(OBJDIR);
298 @echo $(CONFIGURE) $(CONFIGURE_ARGS)
299 @cd $(OBJDIR) && $(BUILD_PROJECT_ARG) $(CONFIGURE_ENV_ARGS) $(CONFIGURE) $(CONFIGURE_ARGS) \
300 || ( echo "*** Fix above errors and then restart with\
301 \"$(MAKE) -f client.mk build\"" && exit 1 )
302 @touch $(OBJDIR)/Makefile
303
4689511 Bug 684617 client.mk runs configure twice r=Callek
Neil Rashbrook authored
304 ifneq (,$(MAKEFILE))
305 $(OBJDIR)/Makefile: $(OBJDIR)/config.status
306
307 $(OBJDIR)/config.status: $(CONFIG_STATUS_DEPS)
308 else
309 $(OBJDIR)/Makefile: $(CONFIG_STATUS_DEPS)
310 endif
ddc5168 @Callek Revert Bug 656049, as one clean cset. r=bustage
Callek authored
311 @$(MAKE) -f $(TOPSRCDIR)/client.mk configure
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
312
313 ifneq (,$(CONFIG_STATUS))
314 $(OBJDIR)/config/autoconf.mk: $(TOPSRCDIR)/config/autoconf.mk.in
b3b6e3c @glandium Bug 780357 - Partial port of bug 774032. pending-r=Callek
glandium authored
315 $(PYTHON) $(OBJDIR)/config.status -n --file=$(OBJDIR)/config/autoconf.mk
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
316 endif
317
e52f118 @khuey Whitespace change to trigger builds on a CLOSED TREE.
khuey authored
318
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
319 ####################################
320 # Depend
321
322 depend:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
323 $(MOZ_MAKE) export && $(MOZ_MAKE) depend
324
325 ####################################
326 # Preflight
327
328 build alldep preflight::
329 ifdef MOZ_PREFLIGHT
330 set -e; \
331 for mkfile in $(MOZ_PREFLIGHT); do \
332 $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
333 done
334 endif
335
336 ####################################
337 # Build it
338
339 build:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
340 $(MOZ_MAKE)
341
342 ####################################
343 # Other targets
344
345 # Pass these target onto the real build system
700deba @Callek Bug 607775 - Finalize missed comm-central sync for client.mk. r=KaiRo
Callek authored
346 install export libs clean realclean distclean alldep maybe_clobber_profiledbuild upload sdk:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
347 $(MOZ_MAKE) $@
348
349 ####################################
350 # Postflight
351
352 build alldep postflight::
353 ifdef MOZ_POSTFLIGHT
354 set -e; \
355 for mkfile in $(MOZ_POSTFLIGHT); do \
356 $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
357 done
358 endif
359
360 endif # MOZ_CURRENT_PROJECT
409988a @gozer Bug 695812 - client.mk with RUN_CLIENT_PY doesn't work with mozconfig…
gozer authored
361 endif # RAN_CLIENT_PY
77157ac @KaiRo-at bug 444686 - create/adapt build system for comm-central, creating the…
KaiRo-at authored
362
363 ####################################
364 # Postflight, after building all projects
365
366 build alldep postflight_all::
367 ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_POSTFLIGHT_ALL),,1))
368 # Don't run postflight_all for individual projects in multi-project builds
369 # (when MOZ_CURRENT_PROJECT is set.)
370 ifndef MOZ_BUILD_PROJECTS
371 # Building a single project, OBJDIR is usable.
372 set -e; \
373 for mkfile in $(MOZ_POSTFLIGHT_ALL); do \
374 $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
375 done
376 else
377 # OBJDIR refers to the project-specific OBJDIR, which is not available at
378 # this point when building multiple projects. Only MOZ_OBJDIR is available.
379 set -e; \
380 for mkfile in $(MOZ_POSTFLIGHT_ALL); do \
381 $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS="$(MOZ_BUILD_PROJECTS)"; \
382 done
383 endif
384 endif
385
386 cleansrcdir:
387 @cd $(TOPSRCDIR); \
388 if [ -f Makefile ]; then \
389 $(MAKE) distclean ; \
390 else \
391 echo "Removing object files from srcdir..."; \
392 rm -fr `find . -type d \( -name .deps -print -o -name CVS \
393 -o -exec test ! -d {}/CVS \; \) -prune \
394 -o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \
395 build/autoconf/clean-config.sh; \
396 fi;
397
398 echo-variable-%:
399 @echo $($*)
400
6ae98b6 @gozer Bug 656049 - teach comm-central client.mk to invoke client.py. r=Call…
gozer authored
401 checkout co: run_client_py
402
403 run_client_py:
404 $(PYTHON) $(TOPSRCDIR)/client.py checkout $(CLIENT_PY_ARGS)
405
d3847e9 Bug 543296 - Port |Bug 422986 -- make -j2 -f client.mk profiledbuild …
Serge Gautherie authored
406 # This makefile doesn't support parallel execution. It does pass
407 # MOZ_MAKE_FLAGS to sub-make processes, so they will correctly execute
408 # in parallel.
409 .NOTPARALLEL:
410
6ae98b6 @gozer Bug 656049 - teach comm-central client.mk to invoke client.py. r=Call…
gozer authored
411 .PHONY: checkout co real_checkout depend build profiledbuild maybe_clobber_profiledbuild export libs alldep install clean realclean distclean cleansrcdir pull_all build_all clobber clobber_all pull_and_build_all everything configure preflight_all preflight postflight postflight_all
Something went wrong with that request. Please try again.