diff --git a/Makefile b/Makefile index edfe50e..da63ce2 100644 --- a/Makefile +++ b/Makefile @@ -23,12 +23,13 @@ $(BUILDDIR): keycodemapdb | submodule # check if qemu/ was used for a build # if so, please run 'make distclean' in the submodule and try again test ! -f $(SRCDIR)/build/config.status - rm -rf $(BUILDDIR) - cp -a $(SRCDIR) $(BUILDDIR) - cp -a debian $(BUILDDIR)/debian - rm -rf $(BUILDDIR)/ui/keycodemapdb - cp -a keycodemapdb $(BUILDDIR)/ui/ - echo "git clone git://git.proxmox.com/git/pve-qemu.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE + rm -rf $(BUILDDIR).tmp $(BUILDDIR) + cp -a $(SRCDIR) $(BUILDDIR).tmp + cp -a debian $(BUILDDIR).tmp/debian + rm -rf $(BUILDDIR).tmp/ui/keycodemapdb + cp -a keycodemapdb $(BUILDDIR).tmp/ui/ + echo "git clone git://git.proxmox.com/git/pve-qemu.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR).tmp/debian/SOURCE + mv $(BUILDDIR).tmp $(BUILDDIR) .PHONY: deb kvm deb kvm: $(DEBS)