]> git.proxmox.com Git - pve-manager.git/blobdiff - Makefile
buildsys: derive upload dist automatically and avoid bogus check
[pve-manager.git] / Makefile
index ae0bde5861c857071662ffea8d9c46a64c55ea78..fd93ec8678f8419978de47837b361b006986e5f9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,10 +55,9 @@ sbuild: $(DSC)
        sbuild $<
 
 .PHONY: upload
-upload: $(DEB) check
-       # check if working directory is clean
-       git diff --exit-code --stat && git diff --exit-code --stat --staged
-       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
+upload: $(DEB)
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
 
 .PHONY: install
 install: vzdump-hook-script.pl