]> git.puffer.fish Git - mirror/pve-network.git/commitdiff
buildsys: improve DSC target & add sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 May 2023 16:04:44 +0000 (18:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 May 2023 16:18:57 +0000 (18:18 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 59b9e2049aefc3b917f2ec9008b57bce8f22d401..b4980de2d3416ed7e427ca97d60e969199afc556 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,15 +26,20 @@ $(DEB): $(BUILDDIR)
        lintian $(DEB)
 
 .PHONY: dsc
-dsc: $(DSC)
+dsc: clean
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
-       lintian $(DSC)
+
+sbuild: $(DSC)
+       sbuild $(DSC)
 
 .PHONY: clean distclean
 distclean: clean
 clean:
-       rm -rf *~ *.deb *.changes $(PACKAGE)-* *.buildinfo *.dsc *.tar.gz
+       rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
 
 .PHONY: test
 test: