]> git.proxmox.com Git - pve-qemu.git/commitdiff
buildsys: derive upload dist automatically
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 19 May 2023 11:24:32 +0000 (13:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 May 2023 13:50:56 +0000 (15:50 +0200)
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 8be47218ffab1a4f66eebeb4bd8a941562b91ad8..3cd6aafc555f0c0cf601daf9391b2e5d7c45ee49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
-include /usr/share/dpkg/pkg-info.mk
-include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/default.mk
 
 PACKAGE = pve-qemu-kvm
 
@@ -48,8 +47,9 @@ update:
        git add keycodemapdb
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
+       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
 
 .PHONY: distclean clean
 distclean: clean