From: Keir Fraser Date: Fri, 7 May 2010 07:43:51 +0000 (+0100) Subject: ocaml: Fix Makefile for parallel build. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12232 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=12d39540c8c0b6cd70de3fc90d12fe4fd1834360;p=xen.git ocaml: Fix Makefile for parallel build. Signed-off-by: Ian Jackson --- 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: