aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-28 10:02:57 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-28 10:02:57 +0100
commit3026986b0f62183e897f7de8ca2f6e1216ad5074 (patch)
tree7044a679a42b72b0124e8df69419ab389c974ee9 /tools/blktap2/Makefile
parentb3bde375d3b14939dcd04dde1a68c9f55361746a (diff)
downloadxen-3026986b0f62183e897f7de8ca2f6e1216ad5074.tar.gz
xen-3026986b0f62183e897f7de8ca2f6e1216ad5074.tar.bz2
xen-3026986b0f62183e897f7de8ca2f6e1216ad5074.zip
blktap2: fix makefile of blktap2
- clean up to use SUBDIRS-y - With parallel make, libvhd might not be created before link. guarantee it. - use LDFLAGS for link which is set by upper level makefiles. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'tools/blktap2/Makefile')
-rw-r--r--tools/blktap2/Makefile22
1 files changed, 3 insertions, 19 deletions
diff --git a/tools/blktap2/Makefile b/tools/blktap2/Makefile
index 20a9451fa1..64983a01e6 100644
--- a/tools/blktap2/Makefile
+++ b/tools/blktap2/Makefile
@@ -11,24 +11,8 @@ SUBDIRS-y += vhd
SUBDIRS-y += drivers
SUBDIRS-y += daemon
-.PHONY: all
-all: build
-
-.PHONY: build
-build:
- @set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir all; \
- done
-
-.PHONY: install
-install:
- @set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir install; \
- done
-
-.PHONY: clean
clean:
rm -rf *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) TAGS
- @set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir clean; \
- done
+
+.PHONY: all clean install
+all clean install: %: subdirs-%