bug 462381 - sprinkle magic PARALLEL_DIRS fairy dust about the build system r=ted.mielczarek
authorMitchell Field <mitch_1_2@live.com.au>
Fri, 13 Nov 2009 14:40:00 -0500
changeset 34890 fae81b8a56482e33863818428929c0e8e12ec403
parent 34889 97e018ae4052c231fc63ae689e625bf075fbe72e
child 34891 59c16df179cd4faa872fa7e11b503b2950abbb27
push idunknown
push userunknown
push dateunknown
reviewersted
bugs462381
milestone1.9.3a1pre
bug 462381 - sprinkle magic PARALLEL_DIRS fairy dust about the build system r=ted.mielczarek
browser/Makefile.in
browser/components/Makefile.in
content/media/Makefile.in
db/Makefile.in
extensions/Makefile.in
intl/Makefile.in
netwerk/protocol/Makefile.in
toolkit/Makefile.in
toolkit/components/Makefile.in
toolkit/mozapps/Makefile.in
uriloader/Makefile.in
xulrunner/Makefile.in
--- a/browser/Makefile.in
+++ b/browser/Makefile.in
@@ -30,24 +30,34 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(topsrcdir)/config/config.mk
 
-DIRS = base components locales themes fuel app
+PARALLEL_DIRS = \
+  base \
+  components \
+  fuel \
+  locales \
+  themes \
+  $(NULL)
+
+DIRS = \
+  app \
+  $(NULL)
 
 ifeq ($(OS_ARCH),WINNT)
 ifdef MOZ_INSTALLER
 DIRS += installer/windows
 endif
 endif
 
 include $(topsrcdir)/config/rules.mk
--- a/browser/components/Makefile.in
+++ b/browser/components/Makefile.in
@@ -30,65 +30,65 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ../..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ../..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 MODULE = browsercomps
 XPIDL_MODULE = browsercompsbase
 
 XPIDLSRCS = \
-	nsIBrowserHandler.idl \
-	nsIBrowserGlue.idl \
-	$(NULL)
+  nsIBrowserGlue.idl \
+  nsIBrowserHandler.idl \
+  $(NULL)
 
 EXTRA_PP_COMPONENTS = \
-	nsBrowserContentHandler.js \
-	nsBrowserGlue.js \
-	$(NULL)
+  nsBrowserContentHandler.js \
+  nsBrowserGlue.js \
+  $(NULL)
 
 EXTRA_JS_MODULES = distribution.js
 
-DIRS = \
-	about \
-	certerror \
-	dirprovider \
-	microsummaries \
-	preferences \
-	search \
-	sessionstore \
-	shell \
-	sidebar \
-	feeds \
-	places \
-	privatebrowsing \
-	$(NULL)
+PARALLEL_DIRS = \
+  about \
+  certerror \
+  dirprovider \
+  feeds \
+  microsummaries \
+  places \
+  preferences \
+  privatebrowsing \
+  search \
+  sessionstore \
+  shell \
+  sidebar \
+  $(NULL)
 
 ifndef WINCE
-DIRS += migration
+PARALLEL_DIRS += migration
 endif
 
 ifeq ($(MOZ_WIDGET_TOOLKIT),windows) 
 ifndef WINCE
-DIRS += wintaskbar
+PARALLEL_DIRS += wintaskbar
 endif
 endif
 
 ifdef MOZ_SAFE_BROWSING
-DIRS += safebrowsing
+PARALLEL_DIRS += safebrowsing
 endif
 
 DIRS += build
 
 ifdef MOZILLA_OFFICIAL
 DEFINES += -DOFFICIAL_BUILD=1
 endif
 
--- a/content/media/Makefile.in
+++ b/content/media/Makefile.in
@@ -29,63 +29,60 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ../..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ../..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-MODULE		= content
-LIBRARY_NAME	= gkconmedia_s
-LIBXUL_LIBRARY 	= 1
-
+MODULE = content
+LIBRARY_NAME = gkconmedia_s
+LIBXUL_LIBRARY = 1
 
-EXPORTS		= \
-		nsMediaDecoder.h \
-		nsMediaStream.h \
-		nsMediaCache.h \
-		$(NULL)
+EXPORTS = \
+  nsMediaDecoder.h \
+  nsMediaStream.h \
+  nsMediaCache.h \
+  $(NULL)
 
-CPPSRCS		= \
-		nsMediaDecoder.cpp \
-		nsMediaCache.cpp \
-		nsMediaStream.cpp \
-		$(NULL)
+CPPSRCS = \
+  nsMediaDecoder.cpp \
+  nsMediaCache.cpp \
+  nsMediaStream.cpp \
+  $(NULL)
 
 ifdef MOZ_SYDNEYAUDIO
-EXPORTS		+= \
-		nsAudioStream.h \
-		$(NULL)
-CPPSRCS		+= \
-		nsAudioStream.cpp \
-		$(NULL)
+EXPORTS += \
+  nsAudioStream.h \
+  $(NULL)
+CPPSRCS += \
+  nsAudioStream.cpp \
+  $(NULL)
 endif
 
-DIRS =
-
 ifdef MOZ_OGG
-DIRS += ogg
+PARALLEL_DIRS += ogg
 endif
 
 ifdef MOZ_WAVE
-DIRS += wave
+PARALLEL_DIRS += wave
 endif
 
 ifdef ENABLE_TESTS
-DIRS += test
+PARALLEL_DIRS += test
 endif
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
 
-INCLUDES	+= \
-		-I$(srcdir)/../base/src \
-		-I$(srcdir)/../html/content/src \
-		$(NULL)
+INCLUDES += \
+  -I$(srcdir)/../base/src \
+  -I$(srcdir)/../html/content/src \
+  $(NULL)
--- a/db/Makefile.in
+++ b/db/Makefile.in
@@ -30,27 +30,26 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 ifndef NSS_DISABLE_DBM
 ifdef MOZ_MORK
-DIRS		= mdb mork
+PARALLEL_DIRS = mdb mork
 endif
 endif 
 
 ifdef MOZ_MORKREADER
-DIRS		+= morkreader
+PARALLEL_DIRS += morkreader
 endif
 
 include $(topsrcdir)/config/rules.mk
-
--- a/extensions/Makefile.in
+++ b/extensions/Makefile.in
@@ -30,18 +30,18 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS		= $(MOZ_EXTENSIONS)
+PARALLEL_DIRS = $(MOZ_EXTENSIONS)
 
 include $(topsrcdir)/config/rules.mk
--- a/intl/Makefile.in
+++ b/intl/Makefile.in
@@ -30,19 +30,26 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS		= unicharutil uconv locale strres lwbrk build
+PARALLEL_DIRS = \
+  locale \
+  lwbrk \
+  strres \
+  uconv \
+  unicharutil \
+  $(NULL)
+
+DIRS = build
 
 include $(topsrcdir)/config/rules.mk
-
--- a/netwerk/protocol/Makefile.in
+++ b/netwerk/protocol/Makefile.in
@@ -30,28 +30,29 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ../..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ../..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS		= about \
-              data \
-              res \
-              file \
-              http \
-              viewsource \
-              ftp \
-              gopher \
-              $(NULL)
+PARALLEL_DIRS = \
+  about \
+  data \
+  file \
+  ftp \
+  gopher \
+  http \
+  res \
+  viewsource \
+  $(NULL)
 
 include $(topsrcdir)/config/rules.mk
 
 DEFINES += -DIMPL_NS_NET
--- a/toolkit/Makefile.in
+++ b/toolkit/Makefile.in
@@ -38,46 +38,42 @@
 
 DEPTH     = ..
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS	= \
-		content \
-		locales \
-		obsolete \
-		profile \
-		themes \
-		spatial-navigation \
-		$(NULL)
+PARALLEL_DIRS = \
+  content \
+  locales \
+  mozapps \
+  obsolete \
+  profile \
+  spatial-navigation \
+  themes \
+  $(NULL)
 
-ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
-DIRS += system/unixproxy
+ifneq (,$(filter gtk2 qt,$(MOZ_WIDGET_TOOLKIT)))
+PARALLEL_DIRS += system/unixproxy
 endif
 
 ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
-DIRS += system/osxproxy
-endif
-
-ifneq (,$(filter qt,$(MOZ_WIDGET_TOOLKIT)))
-DIRS += system/unixproxy
+PARALLEL_DIRS += system/osxproxy
 endif
 
 ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
-DIRS += system/windowsproxy
+PARALLEL_DIRS += system/windowsproxy
 endif
 
 ifdef MOZ_CRASHREPORTER
-DIRS += crashreporter
+PARALLEL_DIRS += crashreporter
 endif
 
 DIRS += \
-	xre \
-	mozapps \
-	$(NULL)
+  xre \
+  $(NULL)
 
 include $(topsrcdir)/config/rules.mk
 
 export::
 	@$(MAKE) -C xre export
--- a/toolkit/components/Makefile.in
+++ b/toolkit/components/Makefile.in
@@ -31,99 +31,100 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH   = ../..
+DEPTH     = ../..
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
-VPATH   = @srcdir@
+VPATH     = @srcdir@
 
 include $(topsrcdir)/config/config.mk
 
 # These component dirs are built for all apps (including suite)
 
 ifdef MOZ_ENABLE_XREMOTE
-DIRS += remote
+PARALLEL_DIRS += remote
 endif
-DIRS += \
-        urlformatter \
-        contentprefs \
-        microformats \
-        places \
-	apppicker \
-	filepicker \
-	console \
-	cookie \
-	exthelper \
-	viewconfig \
-	typeaheadfind \
-	parentalcontrols \
-	passwordmgr \
-	aboutmemory \
-	$(NULL)
+
+PARALLEL_DIRS += \
+  aboutmemory \
+  apppicker \
+  commandlines \
+  console \
+  contentprefs \
+  cookie \
+  exthelper \
+  filepicker \
+  microformats \
+  parentalcontrols \
+  passwordmgr \
+  places \
+  startup \
+  typeaheadfind \
+  urlformatter \
+  viewconfig \
+  $(NULL)
 
 ifneq (,$(filter cocoa, $(MOZ_WIDGET_TOOLKIT)))
 TOOL_DIRS += alerts
 else
-DIRS += alerts
+PARALLEL_DIRS += alerts
 endif
 
 ifdef MOZ_FEEDS
-DIRS += feeds
+PARALLEL_DIRS += feeds
 endif
 
 ifdef MOZ_HELP_VIEWER
-DIRS += help
+PARALLEL_DIRS += help
 endif
 
 ifdef NS_PRINTING
-DIRS +=	printing
+PARALLEL_DIRS += printing
 endif
 
 ifdef MOZ_VIEW_SOURCE
-DIRS +=	viewsource
+PARALLEL_DIRS += viewsource
 endif
 
 ifdef MOZ_XUL
-DIRS += \
+PARALLEL_DIRS += \
   autocomplete \
   satchel \
   $(NULL)
 endif
 
 ifndef MOZ_THUNDERBIRD
 
 ifndef MOZ_SUITE
-DIRS +=	search
+PARALLEL_DIRS += search
 endif
 
 endif # MOZ_THUNDERBIRD
 
 ifdef MOZ_RDF
-DIRS +=	downloads
+PARALLEL_DIRS += downloads
 endif
 
 ifdef MOZ_URL_CLASSIFIER
-DIRS += url-classifier
+PARALLEL_DIRS += url-classifier
 endif
 
 ifdef MOZ_FASTSTART
-DIRS += faststart
+PARALLEL_DIRS += faststart
 endif
 
 DIRS += \
-	commandlines \
-	startup \
-	build \
-	$(NULL)
+  build \
+  $(NULL)
 
 EXTRA_PP_COMPONENTS = nsDefaultCLH.js
 
 ifeq ($(MOZ_BUILD_APP),camino)
 DIRS += autocomplete/public
 DIRS += downloads/public
 endif
 
--- a/toolkit/mozapps/Makefile.in
+++ b/toolkit/mozapps/Makefile.in
@@ -31,24 +31,32 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH   = ../..
+DEPTH     = ../..
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
-VPATH   = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS = downloads extensions update xpinstall plugins handling shared
+PARALLEL_DIRS = \
+  downloads \
+  extensions \
+  handling \
+  plugins \
+  shared \
+  update \
+  xpinstall \
+  $(NULL)
  
 ifeq ($(OS_ARCH),WINCE)
 ifdef WINCE_WINDOWS_MOBILE
 DIRS += installer/wince
 endif
 endif
 
 include $(topsrcdir)/config/rules.mk
--- a/uriloader/Makefile.in
+++ b/uriloader/Makefile.in
@@ -36,23 +36,22 @@
 # ***** END LICENSE BLOCK *****
 
 #
 # uriloader is linked into the docshell module.
 #
 # Build in docshell/build to relink.
 #
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS		= \
-		base \
-		exthandler \
-		prefetch \
-		$(NULL)
+PARALLEL_DIRS = \
+  base \
+  exthandler \
+  prefetch \
+  $(NULL)
 
 include $(topsrcdir)/config/rules.mk
-
--- a/xulrunner/Makefile.in
+++ b/xulrunner/Makefile.in
@@ -31,33 +31,33 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ..
-topsrcdir	= @top_srcdir@
-srcdir		= @srcdir@
-VPATH		= @srcdir@
+DEPTH     = ..
+topsrcdir = @top_srcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-DIRS = \
-	setup \
-	stub \
-	app \
-	examples \
-	$(NULL)
+PARALLEL_DIRS = \
+  app \
+  setup \
+  stub \
+  examples \
+  $(NULL)
 
 ifeq ($(OS_ARCH),WINNT)
 ifdef MOZ_INSTALLER
 DIRS += installer/windows
 endif
 endif
 
 ifneq (,$(filter WINNT WINCE,$(OS_ARCH)))
-DIRS += tools/redit
+PARALLEL_DIRS += tools/redit
 endif
 
 include $(topsrcdir)/config/rules.mk