[Libreoffice-commits] .: Makefile.am

Chris Halls haggai at kemper.freedesktop.org
Wed Dec 8 13:49:12 PST 2010


 Makefile.am |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 2fdb2f696494542290b75176f86d8a758a0d3e6c
Author: Chris Halls <halls at debian.org>
Date:   Wed Dec 8 21:48:20 2010 +0000

    Fix build target dependencies
    
    Fixes build failure with MAKEFLAGS=-j2
    
    With -j2, unpack and patch were running in parallel.
    The dependencies needed to be on the targets themselves, not the
    convenience targets without the $(OOBUILDDIR)/ prefix.

diff --git a/Makefile.am b/Makefile.am
index dd01d93..ae9fbbf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,8 +34,8 @@ STAMP_DIR=$(top_builddir)/stamp
 
 # Source preparation
 
-unpack : $(OOBUILDDIR)/unpack $(top_srcdir)/bin/unpack
-$(OOBUILDDIR)/unpack :
+unpack : $(OOBUILDDIR)/unpack
+$(OOBUILDDIR)/unpack : $(top_srcdir)/bin/unpack
 	test -n "$(OOO_GIT_MANAGED)" && $(TOOLSDIR)/bin/gob --build-dir=$(OOBUILDDIR) prepare || true
 	if test -d $(OOBUILDDIR)/applied_patches ; then \
 		FLAGS=`$(TOOLSDIR)/bin/applyflags $(TOOLSDIR)/bin` ; \
@@ -55,9 +55,11 @@ $(STAMP_DIR)/artwork.install : $(OOBUILDDIR)/unpack \
 	$(TOOLSDIR)/bin/install-artwork $(top_srcdir)/src $(OOBUILDDIR)
 	touch $@
 
-patch.apply: $(OOBUILDDIR)/unpack $(STAMP_DIR)/refresh $(STAMP_DIR)/patch.apply
+patch.apply: $(STAMP_DIR)/patch.apply
 $(STAMP_DIR)/patch.apply : $(top_srcdir)/patches/apply.pl \
 			   $(top_srcdir)/patches/*/*.diff \
+			   $(OOBUILDDIR)/unpack \
+			   $(STAMP_DIR)/refresh \
 			   $(APPLY_DIR)/apply
 	if test "z$(BUILD_WIN32)" != "z"; then \
 	    cp -af $(BUILDDIR)/x86/* $(OOBUILDDIR)/external/dbghelp || true; \


More information about the Libreoffice-commits mailing list