direct-io.hg

changeset 4338:324645337353

bitkeeper revision 1.1159.258.70 (4244a079wh98lZeg0t3eZdAEyBTNPQ)

Tools makefile cleanup and fix for parallel build.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 25 23:36:25 2005 +0000 (2005-03-25)
parents cdbbf0845b2c
children d1189200b017 3498bafc832f
files tools/Makefile
line diff
     1.1 --- a/tools/Makefile	Fri Mar 25 23:01:33 2005 +0000
     1.2 +++ b/tools/Makefile	Fri Mar 25 23:36:25 2005 +0000
     1.3 @@ -1,32 +1,34 @@
     1.4 +XEN_ROOT = ../
     1.5 +include $(XEN_ROOT)/tools/Rules.mk
     1.6  
     1.7 -all:	
     1.8 -	$(MAKE) -C check
     1.9 -	$(MAKE) -C libxutil
    1.10 -	$(MAKE) -C libxc
    1.11 -	$(MAKE) -C misc
    1.12 -	$(MAKE) -C examples
    1.13 -	$(MAKE) -C xentrace
    1.14 -	$(MAKE) -C python
    1.15 -	$(MAKE) -C xfrd
    1.16 +SUBDIRS :=
    1.17 +SUBDIRS += libxutil
    1.18 +SUBDIRS += libxc
    1.19 +SUBDIRS += misc
    1.20 +SUBDIRS += examples
    1.21 +SUBDIRS += xentrace
    1.22 +SUBDIRS += python
    1.23 +SUBDIRS += xfrd
    1.24 +
    1.25 +.PHONY: all install clean check check_clean
    1.26  
    1.27 -install: 
    1.28 +all: check
    1.29 +	@set -e; for subdir in $(SUBDIRS); do \
    1.30 +		$(MAKE) -C $$subdir $@; \
    1.31 +	done
    1.32 +
    1.33 +install: check
    1.34 +	@set -e; for subdir in $(SUBDIRS); do \
    1.35 +		$(MAKE) -C $$subdir $@; \
    1.36 +	done
    1.37 +
    1.38 +clean: check_clean
    1.39 +	@set -e; for subdir in $(SUBDIRS); do \
    1.40 +		$(MAKE) -C $$subdir $@; \
    1.41 +	done
    1.42 +
    1.43 +check:
    1.44  	$(MAKE) -C check
    1.45 -	$(MAKE) -C libxutil install
    1.46 -	$(MAKE) -C libxc install
    1.47 -	$(MAKE) -C misc install
    1.48 -	$(MAKE) -C examples install
    1.49 -	$(MAKE) -C xentrace install
    1.50 -	$(MAKE) -C python install
    1.51 -	$(MAKE) -C xfrd install
    1.52 -	$(MAKE) -C sv install
    1.53  
    1.54 -clean build:
    1.55 -	$(MAKE) -C check $@
    1.56 -	$(MAKE) -C libxutil $@
    1.57 -	$(MAKE) -C libxc $@
    1.58 -	$(MAKE) -C misc $@
    1.59 -	$(MAKE) -C examples $@
    1.60 -	$(MAKE) -C xentrace $@
    1.61 -	$(MAKE) -C python $@
    1.62 -	$(MAKE) -C xfrd $@
    1.63 -
    1.64 +check_clean:
    1.65 +	$(MAKE) -C check clean