RELEASE=5.0 PKGREL=9 PACKAGE=proxmox-mailgateway DEB=${PACKAGE}_${RELEASE}-${PKGREL}_all.deb BUILD_DIR=build ARCH=amd64 DIST=stretch all: ${DEB} ${DEB}: debian rm -rf ${BUILD_DIR} mkdir -p ${BUILD_DIR}/debian cp -ar debian/* ${BUILD_DIR}/debian/ cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us lintian ${DEB} .PHONY: upload upload: ${DEB} tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist ${DIST} --arch ${ARCH} clean: rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes find . -name '*~' -exec rm {} ';'