summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2006-11-09 15:56:49 +0000
committerAvi Kivity <avi@qumranet.com>2006-11-09 15:56:49 +0000
commitbc4657f46ab5df4af1f804281f6df8d906a64b7b (patch)
tree5ddc48b03255557e6550594ba9ecaa83b05ced14 /Makefile
parent8bd3c960772d19a1cc8330710c8bd037778bb216 (diff)
kvm: merge from kernel release branch (revs 3567, 3568, 3577, 3579, 3580, 3582, 3582-5)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a5fe63c2..9b242004 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
+include config.mak
-DESTDIR =
+DESTDIR=
rpmrelease = devel
.PHONY: kernel user qemu clean
-all: kernel user qemu
+all: $(if $(WANT_MODULE), kernel) user qemu
qemu kernel user:
$(MAKE) -C $@
@@ -23,7 +24,7 @@ initdir = /etc/init.d
confdir = /etc/kvm
utilsdir = /etc/kvm/utils
-install:
+install-rpm:
mkdir -p $(DESTDIR)/$(bindir)
mkdir -p $(DESTDIR)/$(confdir)
mkdir -p $(DESTDIR)/$(initdir)
@@ -33,6 +34,10 @@ install:
cp scripts/qemu-ifup $(DESTDIR)/$(confdir)/qemu-ifup
cp kvm $(DESTDIR)/$(utilsdir)/kvm
+install:
+ make -C user DESTDIR="$(DESTDIR)" install
+ make -C qemu DESTDIR="$(DESTDIR)" install
+
tmpspec = .tmp.kvm.spec
rpm: user qemu