]> git.proxmox.com Git - libxdgmime-perl.git/blobdiff - Makefile
buildsys: derive upload dist automatically
[libxdgmime-perl.git] / Makefile
index 9782d418922dece27fa3714a630d86a3568d1d07..ce027ddcfd94c8eb86355d260add284c8ede3fda 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,9 +42,10 @@ ${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC}
        cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
-.PHONY: upload
+.phony: upload
+upload: UPLOAD_DIST ?= ${DEB_DISTRIBUTION}
 upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
+       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist ${UPLOAD_DIST}
 
 
 CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl* *.buildinfo *.build *.dsc *tar.?z