ocaml: Fix Makefile for parallel build.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Keir Fraser committed 2010-05-07 08:43:51 +01:00
1 parent 5b6e351436
commit 12d39540c8
1 file changed
+10 -7
+10 -7
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.