X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=44a74e99cdd5f360ca0802fe79764c70382125ee;hp=7ea60be18837ac9dcfbfbe1e33edb64af8fa6490;hb=d37a71867233a09803e825f0249a1c7df8be25a0;hpb=8a27e4a457da60a9fe58e114ebf05e0a8b61428f diff --git a/Makefile b/Makefile index 7ea60be..44a74e9 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} @@ -37,7 +38,7 @@ ${DSC}: ${BUILDDIR} .PHONY: clean distclean distclean: clean clean: - rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz + rm -rf *~ *.deb *.changes ${PACKAGE}-*/ *.buildinfo *.dsc *.tar.gz .PHONY: check check: @@ -49,4 +50,4 @@ install: .PHONY: upload upload: ${DEB} - tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster + tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye