aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-07 08:43:51 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-07 08:43:51 +0100
commit12d39540c8c0b6cd70de3fc90d12fe4fd1834360 (patch)
tree37749a0bd1ca0a88cc44312f3048b4450fe954ce /tools/ocaml/Makefile
parent5b6e351436e6f94797f0a92a8a478f38644fdaf6 (diff)
downloadxen-12d39540c8c0b6cd70de3fc90d12fe4fd1834360.tar.gz
xen-12d39540c8c0b6cd70de3fc90d12fe4fd1834360.tar.bz2
xen-12d39540c8c0b6cd70de3fc90d12fe4fd1834360.zip
ocaml: Fix Makefile for parallel build.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/ocaml/Makefile')
-rw-r--r--tools/ocaml/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/ocaml/Makefile b/tools/ocaml/Makefile
index 73c2988022..2a36e7bc8c 100644
--- a/tools/ocaml/Makefile
+++ b/tools/ocaml/Makefile
@@ -13,21 +13,24 @@ SUBDIRS = $(SUBDIRS_LIBS) $(SUBDIRS_PROGRAMS)
.PHONY: all
all: build
-.PHONY: build $(SUBDIRS)
-build: $(SUBDIRS)
-
-$(SUBDIRS):
- @echo " === building $@"
- @$(MAKE) --no-print-directory -C $@
+.PHONY: build
+build: SUBDIRS
+
+.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: