]> git.proxmox.com Git - pve-firewall.git/blobdiff - Makefile
bump version to 5.0.7
[pve-firewall.git] / Makefile
index 5d19f3858f83560f845ca74c0c6f3e929b3b2c49..e5d16341605cd32a0b9aa9ece3310db32fceedb1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,8 @@ DEBS=$(DEB) $(DEB2)
 all: $(DEBS)
 
 .PHONY: dinstall
-dinstall: deb
-       dpkg -i $(DEBS)
+dinstall: $(DEB)
+       dpkg -i $<
 
 $(BUILDDIR):
        rm -rf $(BUILDDIR)
@@ -25,17 +25,22 @@ $(BUILDDIR):
 .PHONY: deb
 deb: $(DEBS)
 $(DEB2): $(DEB)
-$(DEB): $(BUILDDIR) check
+$(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
        lintian $(DEBS)
 
 .PHONY: dsc
-dsc: $(DSC)
+dsc:
+       rm -rf $(DSC) $(BUILDDIR)
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
-       lintian $(DSC)
 
-.PHONY: check
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 check:
        make -C test check
 
@@ -47,5 +52,6 @@ clean:
        rm -rf *.deb *.dsc *.changes *.build *.buildinfo $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar*
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_HOST_ARCH)
+       tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) --arch $(DEB_HOST_ARCH)