]> git.proxmox.com Git - novnc-pve.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 May 2023 15:12:11 +0000 (17:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 May 2023 15:16:54 +0000 (17:16 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index b4d8a338fccfed98d9c4885ce620d83ded77754f..304f07eafd3eb318b15f8f2c990c5b85a2ef1579 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/default.mk
 
 PACKAGE=novnc-pve
 
@@ -41,8 +41,9 @@ download $(SRCDIR):
        git submodule foreach 'git pull --ff-only origin master'
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye
+       tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist $(UPLOAD_DIST)
 
 .PHONY: distclean
 distclean: clean