]> git.proxmox.com Git - pmg-gui.git/commitdiff
buildsys: derive upload dist automatically
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 30 May 2023 15:15:22 +0000 (17:15 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 19 Jun 2023 18:48:00 +0000 (20:48 +0200)
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Makefile

index 78fbbb9018e469d704ba475eeefb0cd1cbe4b17b..1b848af0ef5b6a41e4881f2525e863196cfac0b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,8 +64,9 @@ install: pmg-index.html.tt pmg-mobile-index.html.tt js/pmgmanagerlib.js js/mobil
        for f in $(CSSFILES); do install -m 0644 "$$f" $(WWWCSSDIR); done
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist $(UPLOAD_DIST)
 
 distclean: clean
        rm -f examples/simple-demo.pem