]> git.proxmox.com Git - pve-zsync.git/blobdiff - Makefile
bump version to 2.3.1
[pve-zsync.git] / Makefile
index 79c02063f563ce411dc9c12c4b08336b712f5ef0..ba995ffd6dfa25f597df1a366ea85cb71bf241aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,10 @@ install: pve-zsync.8
        install -d $(DOCDIR)
 
 $(BUILDDIR):
-       rm -rf $(BUILDDIR)
-       rsync -a * $(BUILDDIR)
-       echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" >  $(BUILDDIR)/debian/SOURCE
+       rm -rf $@.tmp $@
+       rsync -a * $@.tmp
+       echo "git clone git://git.proxmox.com/git/pve-zsync.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
+       mv $@.tmp $@
 
 .PHONY: deb
 deb: $(DEB)
@@ -47,12 +48,15 @@ $(DEB): $(BUILDDIR)
 .PHONY: dsc
 dsc: $(DSC)
 $(DSC):$(BUILDDIR)
-       cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
+       cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
        lintian $(DSC)
 
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 .PHONY: clean
 clean:
-       rm -rf $(BUILDDIR) *.deb *.dsc $(PACKAGE)*.tar.gz *.buildinfo *.changes
+       rm -rf $(PACKAGE)-[0-9]*/ *.deb *.dsc $(PACKAGE)*.tar.?z *.build *.buildinfo *.changes
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean
@@ -60,5 +64,6 @@ distclean: clean
 
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
+       tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)