include /usr/share/dpkg/pkg-info.mk PACKAGE=proxmox-archive-keyring GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb BUILD_DIR=build all: deb deb: ${DEB} ${DEB}: debian rm -rf ${BUILD_DIR} mkdir -p ${BUILD_DIR}/debian cp -ar debian/* ${BUILD_DIR}/debian/ echo "git clone git://git.proxmox.com/git/proxmox-archive-keyring.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us lintian ${DEB} .PHONY: upload upload: ${DEB} tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster --arch ${ARCH} .PHONY: distclean distclean: clean .PHONY: clean clean: rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo