mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
ocaml: Fix Makefile for parallel build.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
5b6e351436
commit
12d39540c8
1 file changed
+10
-7
+10
-7
@@ -13,21 +13,24 @@ SUBDIRS = $(SUBDIRS_LIBS) $(SUBDIRS_PROGRAMS)
|
||||
.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:
|
||||
|
||||