summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in2
-rw-r--r--pr/src/Makefile.in9
2 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index c80d24a8..b556be71 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -45,8 +45,6 @@ VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
-MAKE := $(patsubst -j%,,$(MAKE)) -j1
-
DIRS = config pr lib
ifdef MOZILLA_CLIENT
diff --git a/pr/src/Makefile.in b/pr/src/Makefile.in
index 35fa7fb2..358b1687 100644
--- a/pr/src/Makefile.in
+++ b/pr/src/Makefile.in
@@ -380,12 +380,19 @@ endif
#
+# We use a 'build' target here to ensure that we build $(TARGETS) after
+# looping over $(DIRS) to create the object files in a parallel build.
+# Recipe commands are executed sequentially in a parallel build while
+# target dependencies are executed in parallel.
+export::
+ $(MAKE) build
+
#
# The Client build wants the shared libraries in $(dist_bindir)
# so we also install them there.
#
-export:: $(TARGETS)
+build:: $(TARGETS)
$(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
ifdef SHARED_LIBRARY
ifeq ($(OS_ARCH),HP-UX)