-PACKAGE=ksm-control-daemon
+include /usr/share/dpkg/default.mk
-# also update debian/changelog
-PKGVER=1.3
-PKGREL=1
+PACKAGE=ksm-control-daemon
-KSM_DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+KSM_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
GITVERSION:=$(shell git rev-parse HEAD)
touch $@
.PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
upload: ${KSM_DEB}
- tar cf - ${KSM_DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+ tar cf - ${KSM_DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist ${UPLOAD_DIST}
.PHONY: distclean
distclean: clean
clean:
rm -rf *~ ksm-control-scripts ${PACKAGE}_*
+.PHONY: deb
+deb: ${KSM_DEB}
+
.PHONY: dinstall
dinstall: ${KSM_DEB}
dpkg -i ${KSM_DEB}