aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kvm/Makefile')
-rw-r--r--kvm/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/kvm/Makefile b/kvm/Makefile
index 6617c89d8..03c7124e4 100644
--- a/kvm/Makefile
+++ b/kvm/Makefile
@@ -14,11 +14,6 @@ qemu kernel user:
qemu: user
-clean:
- @for d in kernel user qemu; do \
- $(MAKE) -C $$d $@; \
- done
-
bindir = /usr/bin
bin = $(bindir)/kvm
initdir = /etc/init.d
@@ -40,12 +35,14 @@ install:
make -C qemu DESTDIR="$(DESTDIR)" install
tmpspec = .tmp.kvm.spec
+TARGETDIR=$$(pwd)/../RPMS
rpm: user qemu
- mkdir -p BUILD RPMS/$$(uname -i)
+ mkdir -p $(TARGETDIR)/$$(uname -i)
sed 's/^Release:.*/Release: $(rpmrelease)/' kvm.spec > $(tmpspec)
rpmbuild --define="kverrel $$(uname -r)" \
--define="objdir $$(pwd)" \
+ --define="_rpmdir $(TARGETDIR)" \
--define="_topdir $$(pwd)" \
--define="prebuilt 1" \
-bb $(tmpspec)