diff --git a/Makefile b/Makefile index 299abbc..aebb5af 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,11 @@ all: dinstall: deb dpkg -i ${DEB} -${BUILDDIR}: src debian - rm -rf ${BUILDDIR} - rsync -a * ${BUILDDIR} - echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE +${BUILDDIR}: src debian test + rm -rf ${BUILDDIR} ${BUILDDIR}.tmp; mkdir ${BUILDDIR}.tmp + cp -a -t ${BUILDDIR}.tmp $^ Makefile + echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}.tmp/debian/SOURCE + mv ${BUILDDIR}.tmp ${BUILDDIR} .PHONY: deb deb: ${DEB}