[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] ocaml: Fix Makefile for parallel build.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273218231 -3600
# Node ID 23b9231833b447ebc44dc8c56a435798c483f135
# Parent  e85d18cbf00837bc8815b4539a0673c7f23cce16
ocaml: Fix Makefile for parallel build.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/ocaml/Makefile |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff -r e85d18cbf008 -r 23b9231833b4 tools/ocaml/Makefile
--- a/tools/ocaml/Makefile      Thu May 06 17:00:08 2010 +0100
+++ b/tools/ocaml/Makefile      Fri May 07 08:43:51 2010 +0100
@@ -13,21 +13,24 @@ SUBDIRS = $(SUBDIRS_LIBS) $(SUBDIRS_PROG
 .PHONY: all
 all: build
 
-.PHONY: build $(SUBDIRS)
-build: $(SUBDIRS)
+.PHONY: build
+build: SUBDIRS
 
-$(SUBDIRS):
-       @echo " === building $@"
-       @$(MAKE) --no-print-directory -C $@
+.PHONY: SUBDIRS SUBDIRS_PROGRAMS SUBDIRS_LIBS
+SUBDIRS SUBDIRS_PROGRAMS SUBDIRS_LIBS:
+       @set -e; for d in $($@); do                     \
+               echo " === building $$d";               \
+               $(MAKE) --no-print-directory -C $$d;    \
+       done
 
 .PHONY: install install-libs install-program
 install: install-libs install-program
 
-install-program: $(SUBDIRS_PROGRAMS)
+install-program: SUBDIRS_PROGRAMS
        $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
        $(INSTALL_PROG) xenstored/oxenstored $(DESTDIR)$(SBINDIR)
 
-install-libs: $(SUBDIRS_LIBS)
+install-libs: SUBDIRS_LIBS
 
 .PHONY: clean
 clean:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.