]> git.proxmox.com Git - kronosnet.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 May 2023 12:01:18 +0000 (14:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 May 2023 12:01:18 +0000 (14:01 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index bae4a1bef2d22df37400824fc3f638a74acd8fe4..28530ab19f4f4b38427c357c7a5796c2396be109 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,8 +50,9 @@ submodule:
        test -f "$(SRC_SUBMODULE)/README" || git submodule update --init $(SRC_SUBMODULE)
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEBS) | ssh repoman@repo.proxmox.com upload --product pve --dist bookworm
+       tar cf - $(DEBS) | ssh repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
 
 .PHONY: clean
 clean: