]> git.proxmox.com Git - pve-storage.git/blobdiff - Makefile
fixup error messages when getting file size info
[pve-storage.git] / Makefile
index fe587e0bea9db7450675d3f9d8c95515aa0d1d26..758463c0ac9a0556eb435e52def7542231d7f0af 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ include /usr/share/dpkg/pkg-info.mk
 
 PACKAGE=libpve-storage-perl
 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
@@ -32,5 +33,17 @@ clean:
        rm -rf $(PACKAGE)-[0-9]*/ *.deb *.dsc *.build *.buildinfo *.changes $(PACKAGE)*.tar.*
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
+
+dsc: $(DSC)
+       $(MAKE) clean
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
+$(DSC): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
+
+sbuild: $(DSC)
+       sbuild $(DSC)