X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=758463c0ac9a0556eb435e52def7542231d7f0af;hb=HEAD;hp=fe587e0bea9db7450675d3f9d8c95515aa0d1d26;hpb=d785b69df90f92e70d0a8ad9438dc5dffc1ec022;p=pve-storage.git diff --git a/Makefile b/Makefile index fe587e0..758463c 100644 --- 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)