]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:45:24 +0000 (11:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:45:24 +0000 (11:45 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index cb857b721737801982df165d930e7eeaa063511c..be8665426d56220111a767585ce047c9718cc6ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,9 +36,10 @@ lint: $(JSSRC)
        $(MAKE) -C src lint
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
-       tar cf - $(DEV_DEB) | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist bullseye
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
+       tar cf - $(DEV_DEB) | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist $(UPLOAD_DIST)
 
 distclean: clean
 clean: