michael@0: # -*- makefile -*- michael@0: # vim:set ts=8 sw=8 sts=8 noet: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Build a mozilla application. michael@0: # michael@0: # To build a tree, michael@0: # 1. hg clone ssh://hg.mozilla.org/mozilla-central mozilla michael@0: # 2. cd mozilla michael@0: # 3. create your .mozconfig file with michael@0: # ac_add_options --enable-application=browser michael@0: # 4. gmake -f client.mk michael@0: # michael@0: # Other targets (gmake -f client.mk [targets...]), michael@0: # build michael@0: # clean (realclean is now the same as clean) michael@0: # distclean michael@0: # michael@0: # See http://developer.mozilla.org/en/docs/Build_Documentation for michael@0: # more information. michael@0: # michael@0: # Options: michael@0: # MOZ_BUILD_PROJECTS - Build multiple projects in subdirectories michael@0: # of MOZ_OBJDIR michael@0: # MOZ_OBJDIR - Destination object directory michael@0: # MOZ_MAKE_FLAGS - Flags to pass to $(MAKE) michael@0: # MOZ_PREFLIGHT_ALL } - Makefiles to run before any project in michael@0: # MOZ_PREFLIGHT } MOZ_BUILD_PROJECTS, before each project, after michael@0: # MOZ_POSTFLIGHT } each project, and after all projects; these michael@0: # MOZ_POSTFLIGHT_ALL } variables contain space-separated lists michael@0: # MOZ_UNIFY_BDATE - Set to use the same bdate for each project in michael@0: # MOZ_BUILD_PROJECTS michael@0: # michael@0: ####################################################################### michael@0: # Defines michael@0: michael@0: comma := , michael@0: michael@0: CWD := $(CURDIR) michael@0: ifneq (1,$(words $(CWD))) michael@0: $(error The mozilla directory cannot be located in a path with spaces.) michael@0: endif michael@0: michael@0: ifeq "$(CWD)" "/" michael@0: CWD := /. michael@0: endif michael@0: michael@0: ifndef TOPSRCDIR michael@0: ifeq (,$(wildcard client.mk)) michael@0: TOPSRCDIR := $(patsubst %/,%,$(dir $(MAKEFILE_LIST))) michael@0: MOZ_OBJDIR = . michael@0: else michael@0: TOPSRCDIR := $(CWD) michael@0: endif michael@0: endif michael@0: michael@0: # try to find autoconf 2.13 - discard errors from 'which' michael@0: # MacOS X 10.4 sends "no autoconf*" errors to stdout, discard those via grep michael@0: AUTOCONF ?= $(shell which autoconf-2.13 autoconf2.13 autoconf213 2>/dev/null | grep -v '^no autoconf' | head -1) michael@0: michael@0: # See if the autoconf package was installed through fink michael@0: ifeq (,$(strip $(AUTOCONF))) michael@0: AUTOCONF = $(shell which fink >/dev/null 2>&1 && echo `which fink`/../../lib/autoconf2.13/bin/autoconf) michael@0: endif michael@0: michael@0: ifeq (,$(strip $(AUTOCONF))) michael@0: AUTOCONF=$(error Could not find autoconf 2.13) michael@0: endif michael@0: michael@0: SH := /bin/sh michael@0: PERL ?= perl michael@0: PYTHON ?= python michael@0: michael@0: CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess) michael@0: ifdef CONFIG_GUESS_SCRIPT michael@0: CONFIG_GUESS := $(shell $(CONFIG_GUESS_SCRIPT)) michael@0: endif michael@0: michael@0: michael@0: #################################### michael@0: # Sanity checks michael@0: michael@0: # Windows checks. michael@0: ifneq (,$(findstring mingw,$(CONFIG_GUESS))) michael@0: michael@0: # check for CRLF line endings michael@0: ifneq (0,$(shell $(PERL) -e 'binmode(STDIN); while () { if (/\r/) { print "1"; exit } } print "0"' < $(TOPSRCDIR)/client.mk)) michael@0: $(error This source tree appears to have Windows-style line endings. To \ michael@0: convert it to Unix-style line endings, check \ michael@0: "https://developer.mozilla.org/en-US/docs/Developer_Guide/Mozilla_build_FAQ\#Win32-specific_questions" \ michael@0: for a workaround of this issue.) michael@0: endif michael@0: endif michael@0: michael@0: #################################### michael@0: # Load mozconfig Options michael@0: michael@0: # See build pages, http://www.mozilla.org/build/ for how to set up mozconfig. michael@0: michael@0: MOZCONFIG_LOADER := build/autoconf/mozconfig2client-mk michael@0: michael@0: define CR michael@0: michael@0: michael@0: endef michael@0: michael@0: # As $(shell) doesn't preserve newlines, use sed to replace them with an michael@0: # unlikely sequence (||), which is then replaced back to newlines by make michael@0: # before evaluation. $(shell) replacing newlines with spaces, || is always michael@0: # followed by a space (since sed doesn't remove newlines), except on the michael@0: # last line, so replace both '|| ' and '||'. michael@0: MOZCONFIG_CONTENT := $(subst ||,$(CR),$(subst || ,$(CR),$(shell $(TOPSRCDIR)/$(MOZCONFIG_LOADER) $(TOPSRCDIR) | sed 's/$$/||/'))) michael@0: $(eval $(MOZCONFIG_CONTENT)) michael@0: michael@0: export FOUND_MOZCONFIG michael@0: michael@0: # As '||' was used as a newline separator, it means it's not occurring in michael@0: # lines themselves. It can thus safely be used to replaces normal spaces, michael@0: # to then replace newlines with normal spaces. This allows to get a list michael@0: # of mozconfig output lines. michael@0: MOZCONFIG_OUT_LINES := $(subst $(CR), ,$(subst $(NULL) $(NULL),||,$(MOZCONFIG_CONTENT))) michael@0: # Filter-out comments from those lines. michael@0: START_COMMENT = \# michael@0: MOZCONFIG_OUT_FILTERED := $(filter-out $(START_COMMENT)%,$(MOZCONFIG_OUT_LINES)) michael@0: michael@0: ifdef AUTOCLOBBER michael@0: export AUTOCLOBBER=1 michael@0: endif michael@0: export MOZ_PGO michael@0: michael@0: ifdef MOZ_PARALLEL_BUILD michael@0: MOZ_MAKE_FLAGS := $(filter-out -j%,$(MOZ_MAKE_FLAGS)) michael@0: MOZ_MAKE_FLAGS += -j$(MOZ_PARALLEL_BUILD) michael@0: endif michael@0: michael@0: # Automatically add -jN to make flags if not defined. N defaults to number of cores. michael@0: ifeq (,$(findstring -j,$(MOZ_MAKE_FLAGS))) michael@0: cores=$(shell $(PYTHON) -c 'import multiprocessing; print(multiprocessing.cpu_count())') michael@0: MOZ_MAKE_FLAGS += -j$(cores) michael@0: endif michael@0: michael@0: michael@0: ifndef MOZ_OBJDIR michael@0: MOZ_OBJDIR = obj-$(CONFIG_GUESS) michael@0: else michael@0: # On Windows Pymake builds check MOZ_OBJDIR doesn't start with "/" michael@0: ifneq (,$(findstring mingw,$(CONFIG_GUESS))) michael@0: ifeq (1_a,$(.PYMAKE)_$(firstword a$(subst /, ,$(MOZ_OBJDIR)))) michael@0: $(error For Windows Pymake builds, MOZ_OBJDIR must be a Windows [and not MSYS] style path.) michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: ifdef MOZ_BUILD_PROJECTS michael@0: michael@0: ifdef MOZ_CURRENT_PROJECT michael@0: OBJDIR = $(MOZ_OBJDIR)/$(MOZ_CURRENT_PROJECT) michael@0: MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR) michael@0: BUILD_PROJECT_ARG = MOZ_BUILD_APP=$(MOZ_CURRENT_PROJECT) michael@0: else michael@0: OBJDIR = $(error Cannot find the OBJDIR when MOZ_CURRENT_PROJECT is not set.) michael@0: MOZ_MAKE = $(error Cannot build in the OBJDIR when MOZ_CURRENT_PROJECT is not set.) michael@0: endif michael@0: michael@0: else # MOZ_BUILD_PROJECTS michael@0: michael@0: OBJDIR = $(MOZ_OBJDIR) michael@0: MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR) michael@0: michael@0: endif # MOZ_BUILD_PROJECTS michael@0: michael@0: # 'configure' scripts generated by autoconf. michael@0: CONFIGURES := $(TOPSRCDIR)/configure michael@0: CONFIGURES += $(TOPSRCDIR)/js/src/configure michael@0: michael@0: # Make targets that are going to be passed to the real build system michael@0: OBJDIR_TARGETS = install export libs clean realclean distclean maybe_clobber_profiledbuild upload sdk installer package package-compare stage-package source-package l10n-check automation/build michael@0: michael@0: ####################################################################### michael@0: # Rules michael@0: michael@0: # The default rule is build michael@0: build:: michael@0: $(MAKE) -f $(TOPSRCDIR)/client.mk $(if $(MOZ_PGO),profiledbuild,realbuild) michael@0: michael@0: # Define mkdir michael@0: include $(TOPSRCDIR)/config/makefiles/makeutils.mk michael@0: include $(TOPSRCDIR)/config/makefiles/autotargets.mk michael@0: michael@0: # Create a makefile containing the mk_add_options values from mozconfig, michael@0: # but only do so when OBJDIR is defined (see further above). michael@0: ifdef MOZ_BUILD_PROJECTS michael@0: ifdef MOZ_CURRENT_PROJECT michael@0: WANT_MOZCONFIG_MK = 1 michael@0: else michael@0: WANT_MOZCONFIG_MK = michael@0: endif michael@0: else michael@0: WANT_MOZCONFIG_MK = 1 michael@0: endif michael@0: michael@0: ifdef WANT_MOZCONFIG_MK michael@0: # For now, only output "export" lines from mozconfig2client-mk output. michael@0: MOZCONFIG_MK_LINES := $(filter export||%,$(MOZCONFIG_OUT_LINES)) michael@0: $(OBJDIR)/.mozconfig.mk: $(FOUND_MOZCONFIG) $(call mkdir_deps,$(OBJDIR)) $(OBJDIR)/CLOBBER michael@0: $(if $(MOZCONFIG_MK_LINES),( $(foreach line,$(MOZCONFIG_MK_LINES), echo '$(subst ||, ,$(line))';) )) > $@ michael@0: michael@0: # Include that makefile so that it is created. This should not actually change michael@0: # the environment since MOZCONFIG_CONTENT, which MOZCONFIG_OUT_LINES derives michael@0: # from, has already been eval'ed. michael@0: include $(OBJDIR)/.mozconfig.mk michael@0: endif michael@0: michael@0: # Print out any options loaded from mozconfig. michael@0: all realbuild clean distclean export libs install realclean:: michael@0: ifneq (,$(strip $(MOZCONFIG_OUT_FILTERED))) michael@0: $(info Adding client.mk options from $(FOUND_MOZCONFIG):) michael@0: $(foreach line,$(MOZCONFIG_OUT_FILTERED),$(info $(NULL) $(NULL) $(NULL) $(NULL) $(subst ||, ,$(line)))) michael@0: endif michael@0: michael@0: # Windows equivalents michael@0: build_all: build michael@0: clobber clobber_all: clean michael@0: michael@0: # helper target for mobile michael@0: build_and_deploy: build package install michael@0: michael@0: # Do everything from scratch michael@0: everything: clean build michael@0: michael@0: #################################### michael@0: # Profile-Guided Optimization michael@0: # This is up here, outside of the MOZ_CURRENT_PROJECT logic so that this michael@0: # is usable in multi-pass builds, where you might not have a runnable michael@0: # application until all the build passes and postflight scripts have run. michael@0: ifdef MOZ_OBJDIR michael@0: PGO_OBJDIR = $(MOZ_OBJDIR) michael@0: else michael@0: PGO_OBJDIR := $(TOPSRCDIR) michael@0: endif michael@0: michael@0: profiledbuild:: michael@0: $(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_GENERATE=1 MOZ_PGO_INSTRUMENTED=1 michael@0: $(MAKE) -C $(PGO_OBJDIR) package MOZ_PGO_INSTRUMENTED=1 MOZ_INTERNAL_SIGNING_FORMAT= MOZ_EXTERNAL_SIGNING_FORMAT= michael@0: rm -f ${PGO_OBJDIR}/jarlog/en-US.log michael@0: MOZ_PGO_INSTRUMENTED=1 JARLOG_FILE=jarlog/en-US.log EXTRA_TEST_ARGS=10 $(MAKE) -C $(PGO_OBJDIR) pgo-profile-run michael@0: $(MAKE) -f $(TOPSRCDIR)/client.mk maybe_clobber_profiledbuild michael@0: $(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_USE=1 michael@0: michael@0: ##################################################### michael@0: # Build date unification michael@0: michael@0: ifdef MOZ_UNIFY_BDATE michael@0: ifndef MOZ_BUILD_DATE michael@0: ifdef MOZ_BUILD_PROJECTS michael@0: MOZ_BUILD_DATE = $(shell $(PYTHON) $(TOPSRCDIR)/toolkit/xre/make-platformini.py --print-buildid) michael@0: export MOZ_BUILD_DATE michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: ##################################################### michael@0: # Preflight, before building any project michael@0: michael@0: realbuild preflight_all:: michael@0: ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_PREFLIGHT_ALL),,1)) michael@0: # Don't run preflight_all for individual projects in multi-project builds michael@0: # (when MOZ_CURRENT_PROJECT is set.) michael@0: ifndef MOZ_BUILD_PROJECTS michael@0: # Building a single project, OBJDIR is usable. michael@0: set -e; \ michael@0: for mkfile in $(MOZ_PREFLIGHT_ALL); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \ michael@0: done michael@0: else michael@0: # OBJDIR refers to the project-specific OBJDIR, which is not available at michael@0: # this point when building multiple projects. Only MOZ_OBJDIR is available. michael@0: set -e; \ michael@0: for mkfile in $(MOZ_PREFLIGHT_ALL); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS='$(MOZ_BUILD_PROJECTS)'; \ michael@0: done michael@0: endif michael@0: endif michael@0: michael@0: # If we're building multiple projects, but haven't specified which project, michael@0: # loop through them. michael@0: michael@0: ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_BUILD_PROJECTS),,1)) michael@0: configure realbuild preflight postflight $(OBJDIR_TARGETS):: michael@0: set -e; \ michael@0: for app in $(MOZ_BUILD_PROJECTS); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/client.mk $@ MOZ_CURRENT_PROJECT=$$app; \ michael@0: done michael@0: michael@0: else michael@0: michael@0: # MOZ_CURRENT_PROJECT: either doing a single-project build, or building an michael@0: # individual project in a multi-project build. michael@0: michael@0: #################################### michael@0: # Configure michael@0: michael@0: MAKEFILE = $(wildcard $(OBJDIR)/Makefile) michael@0: CONFIG_STATUS = $(wildcard $(OBJDIR)/config.status) michael@0: CONFIG_CACHE = $(wildcard $(OBJDIR)/config.cache) michael@0: michael@0: EXTRA_CONFIG_DEPS := \ michael@0: $(TOPSRCDIR)/aclocal.m4 \ michael@0: $(wildcard $(TOPSRCDIR)/build/autoconf/*.m4) \ michael@0: $(TOPSRCDIR)/js/src/aclocal.m4 \ michael@0: $(NULL) michael@0: michael@0: $(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS) michael@0: @echo Generating $@ using autoconf michael@0: cd $(@D); $(AUTOCONF) michael@0: michael@0: CONFIG_STATUS_DEPS := \ michael@0: $(wildcard $(TOPSRCDIR)/*/confvars.sh) \ michael@0: $(CONFIGURES) \ michael@0: $(TOPSRCDIR)/CLOBBER \ michael@0: $(TOPSRCDIR)/nsprpub/configure \ michael@0: $(TOPSRCDIR)/config/milestone.txt \ michael@0: $(TOPSRCDIR)/browser/config/version.txt \ michael@0: $(TOPSRCDIR)/build/virtualenv_packages.txt \ michael@0: $(TOPSRCDIR)/python/mozbuild/mozbuild/virtualenv.py \ michael@0: $(TOPSRCDIR)/testing/mozbase/packages.txt \ michael@0: $(NULL) michael@0: michael@0: CONFIGURE_ENV_ARGS += \ michael@0: MAKE='$(MAKE)' \ michael@0: $(NULL) michael@0: michael@0: # configure uses the program name to determine @srcdir@. Calling it without michael@0: # $(TOPSRCDIR) will set @srcdir@ to "."; otherwise, it is set to the full michael@0: # path of $(TOPSRCDIR). michael@0: ifeq ($(TOPSRCDIR),$(OBJDIR)) michael@0: CONFIGURE = ./configure michael@0: else michael@0: CONFIGURE = $(TOPSRCDIR)/configure michael@0: endif michael@0: michael@0: $(OBJDIR)/CLOBBER: $(TOPSRCDIR)/CLOBBER michael@0: $(PYTHON) $(TOPSRCDIR)/config/pythonpath.py -I $(TOPSRCDIR)/testing/mozbase/mozfile \ michael@0: $(TOPSRCDIR)/python/mozbuild/mozbuild/controller/clobber.py $(TOPSRCDIR) $(OBJDIR) michael@0: michael@0: configure-files: $(CONFIGURES) michael@0: michael@0: configure-preqs = \ michael@0: $(OBJDIR)/CLOBBER \ michael@0: configure-files \ michael@0: $(call mkdir_deps,$(OBJDIR)) \ michael@0: $(if $(MOZ_BUILD_PROJECTS),$(call mkdir_deps,$(MOZ_OBJDIR))) \ michael@0: save-mozconfig \ michael@0: $(NULL) michael@0: michael@0: save-mozconfig: $(FOUND_MOZCONFIG) michael@0: -cp $(FOUND_MOZCONFIG) $(OBJDIR)/.mozconfig michael@0: michael@0: configure:: $(configure-preqs) michael@0: @echo cd $(OBJDIR); michael@0: @echo $(CONFIGURE) $(CONFIGURE_ARGS) michael@0: @cd $(OBJDIR) && $(BUILD_PROJECT_ARG) $(CONFIGURE_ENV_ARGS) $(CONFIGURE) $(CONFIGURE_ARGS) \ michael@0: || ( echo '*** Fix above errors and then restart with\ michael@0: "$(MAKE) -f client.mk build"' && exit 1 ) michael@0: @touch $(OBJDIR)/Makefile michael@0: michael@0: ifneq (,$(MAKEFILE)) michael@0: $(OBJDIR)/Makefile: $(OBJDIR)/config.status michael@0: michael@0: $(OBJDIR)/config.status: $(CONFIG_STATUS_DEPS) michael@0: else michael@0: $(OBJDIR)/Makefile: $(CONFIG_STATUS_DEPS) michael@0: endif michael@0: @$(MAKE) -f $(TOPSRCDIR)/client.mk configure michael@0: michael@0: ifneq (,$(CONFIG_STATUS)) michael@0: $(OBJDIR)/config/autoconf.mk: $(TOPSRCDIR)/config/autoconf.mk.in michael@0: $(PYTHON) $(OBJDIR)/config.status -n --file=$(OBJDIR)/config/autoconf.mk michael@0: endif michael@0: michael@0: michael@0: #################################### michael@0: # Preflight michael@0: michael@0: realbuild preflight:: michael@0: ifdef MOZ_PREFLIGHT michael@0: set -e; \ michael@0: for mkfile in $(MOZ_PREFLIGHT); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \ michael@0: done michael@0: endif michael@0: michael@0: #################################### michael@0: # Build it michael@0: michael@0: realbuild:: $(OBJDIR)/Makefile $(OBJDIR)/config.status michael@0: +$(MOZ_MAKE) michael@0: michael@0: #################################### michael@0: # Other targets michael@0: michael@0: # Pass these target onto the real build system michael@0: $(OBJDIR_TARGETS):: $(OBJDIR)/Makefile $(OBJDIR)/config.status michael@0: +$(MOZ_MAKE) $@ michael@0: michael@0: #################################### michael@0: # Postflight michael@0: michael@0: realbuild postflight:: michael@0: ifdef MOZ_POSTFLIGHT michael@0: set -e; \ michael@0: for mkfile in $(MOZ_POSTFLIGHT); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \ michael@0: done michael@0: endif michael@0: michael@0: endif # MOZ_CURRENT_PROJECT michael@0: michael@0: #################################### michael@0: # Postflight, after building all projects michael@0: michael@0: realbuild postflight_all:: michael@0: ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_POSTFLIGHT_ALL),,1)) michael@0: # Don't run postflight_all for individual projects in multi-project builds michael@0: # (when MOZ_CURRENT_PROJECT is set.) michael@0: ifndef MOZ_BUILD_PROJECTS michael@0: # Building a single project, OBJDIR is usable. michael@0: set -e; \ michael@0: for mkfile in $(MOZ_POSTFLIGHT_ALL); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \ michael@0: done michael@0: else michael@0: # OBJDIR refers to the project-specific OBJDIR, which is not available at michael@0: # this point when building multiple projects. Only MOZ_OBJDIR is available. michael@0: set -e; \ michael@0: for mkfile in $(MOZ_POSTFLIGHT_ALL); do \ michael@0: $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS='$(MOZ_BUILD_PROJECTS)'; \ michael@0: done michael@0: endif michael@0: endif michael@0: michael@0: cleansrcdir: michael@0: @cd $(TOPSRCDIR); \ michael@0: if [ -f Makefile ]; then \ michael@0: $(MAKE) distclean ; \ michael@0: else \ michael@0: echo 'Removing object files from srcdir...'; \ michael@0: rm -fr `find . -type d \( -name .deps -print -o -name CVS \ michael@0: -o -exec test ! -d {}/CVS \; \) -prune \ michael@0: -o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \ michael@0: build/autoconf/clean-config.sh; \ michael@0: fi; michael@0: michael@0: echo-variable-%: michael@0: @echo $($*) michael@0: michael@0: # This makefile doesn't support parallel execution. It does pass michael@0: # MOZ_MAKE_FLAGS to sub-make processes, so they will correctly execute michael@0: # in parallel. michael@0: .NOTPARALLEL: michael@0: michael@0: .PHONY: checkout \ michael@0: real_checkout \ michael@0: realbuild \ michael@0: build \ michael@0: profiledbuild \ michael@0: cleansrcdir \ michael@0: pull_all \ michael@0: build_all \ michael@0: clobber \ michael@0: clobber_all \ michael@0: pull_and_build_all \ michael@0: everything \ michael@0: configure \ michael@0: preflight_all \ michael@0: preflight \ michael@0: postflight \ michael@0: postflight_all \ michael@0: $(OBJDIR_TARGETS)