]> git.proxmox.com Git - pve-firewall.git/commitdiff
buildsys: add sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 May 2023 12:46:45 +0000 (14:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 May 2023 12:46:48 +0000 (14:46 +0200)
and only call lintian for the dsc target, as otherwise sbuild already
takes care of that (avoid duplicate work)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index aa2a9b2c8820a4e5670c7792245cb65f9b27ca60..74be3787801f8291111e7a7770dae7784d3a78d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,10 +30,16 @@ $(DEB): $(BUILDDIR) check
        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)
+
+sbuild: $(DSC)
+       sbuild $(DSC)
 
 .PHONY: check
 check: