]> git.proxmox.com Git - lxcfs.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 May 2023 11:39:18 +0000 (13:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 May 2023 11:41:37 +0000 (13:41 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 227980108b37ae20e213794a675897043f1ec672..ab6415a30f04bcb7c710e1358d7483dbcc76f79e 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=lxcfs
 
@@ -47,8 +46,9 @@ $(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
        lintian $(DSC)
 
 .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 distclean
 clean: