]> git.proxmox.com Git - corosync-pve.git/commitdiff
buildsys: automatically derive upload dist
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 7 May 2023 12:23:15 +0000 (14:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 7 May 2023 12:47:06 +0000 (14:47 +0200)
as defined in debian/changelog

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 2629cb38a44fb874fd4ae8cc3a27a1504a878c48..1dd0eef6121351c4c4b3e27229e7789f41b4281d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
-include /usr/share/dpkg/pkg-info.mk
-include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/default.mk
 
 PACKAGE=corosync
 
@@ -74,8 +73,9 @@ submodule:
        test -f "$(CSSRC)/INSTALL" || git submodule update --init $(CSSRC)
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bookworm --arch $(DEB_BUILD_ARCH)
+       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) --arch $(DEB_BUILD_ARCH)
 
 .PHONY: clean
 distclean: clean