6 .PHONY: kernel user qemu clean
16 @for d in kernel user qemu; do \
24 utilsdir = /etc/kvm/utils
25 arch := $(shell uname -i)
29 qtarget := qemu-system-x86_64
33 mkdir -p $(DESTDIR)/$(bindir)
34 mkdir -p $(DESTDIR)/$(confdir)
35 mkdir -p $(DESTDIR)/$(initdir)
36 mkdir -p $(DESTDIR)/$(utilsdir)
37 cp qemu/$(arch)-softmmu/$(qtarget) $(DESTDIR)/$(bin)
38 mkdir -p /usr/share/kvm
39 cp -a qemu/pc-bios/* /usr/share/kvm
40 cp scripts/kvm $(DESTDIR)/$(initdir)/kvm
41 cp scripts/qemu-ifup $(DESTDIR)/$(confdir)/qemu-ifup
42 cp kvm $(DESTDIR)/$(utilsdir)/kvm
43 mkdir -p $(DESTDIR)/lib/modules/$(KERNEL)/misc
44 cp kernel/kvm.ko $(DESTDIR)/lib/modules/$(KERNEL)/misc
47 tmpspec = .tmp.kvm.spec
50 mkdir -p BUILD RPMS/$$(uname -i)
51 sed 's/^Release:.*/Release: $(rpmrelease)/' kvm.spec > $(tmpspec)
52 rpmbuild --define="kverrel $$(uname -r)" \
53 --define="objdir $$(pwd)" \
54 --define="_topdir $$(pwd)" \