]> git.proxmox.com Git - libjs-qrcodejs.git/blobdiff - Makefile
buildsys: derive upload dist automatically
[libjs-qrcodejs.git] / Makefile
index 520678c93a189058aa5899a539a7ea9d041d9129..05a4c4f2e6d4aac30a159fa31bf0b229176da6ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,9 +40,13 @@ $(DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
 sbuild: $(DSC)
        sbuild $(DSC)
 
+# HACK, but this is a *very* seldom bumped package and normally 1:1 the same in all our dists
+-include /etc/os-release
+
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(VERSION_CODENAME)
 upload: $(DEB)
-       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
 
 distclean: clean
 clean: