1XEN_ROOT = $(CURDIR)/../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4SUBDIRS := libs
5SUBDIRS += xenstored
6
7.NOTPARALLEL:
8# targets here must be run in order, otherwise we can try
9# to build programs before the libraries are done
10
11.PHONY: all
12all: subdirs-all
13
14.PHONY: install
15install: subdirs-install
16
17.PHONY: uninstall
18uninstall: subdirs-uninstall
19
20.PHONY: clean
21clean: subdirs-clean
22
23.PHONY: distclean
24distclean: subdirs-distclean
25
26.PHONY: build-tools-oxenstored
27build-tools-oxenstored:
28	$(MAKE) -s -C libs/eventchn
29	$(MAKE) -s -C libs/mmap
30	$(MAKE) -s -C libs/xb
31	$(MAKE) -s -C libs/xc
32	$(MAKE) -C xenstored
33
34.PHONY: format
35format:
36	git ls-files '*.ml' '*.mli' | xargs -n1 ocp-indent -i
37