]> git.proxmox.com Git - libpve-u2f-server-perl.git/commitdiff
buildsys: add sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 May 2023 13:52:04 +0000 (15:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 May 2023 14:07:32 +0000 (16:07 +0200)
and ensure lintian isn't always run in the $(DSC) case, as sbuild
does that itself already, just run it for the dsc phony target.

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

index b70ea146297788cd97bfbec9415fb851443fe2af..91a3cafc67852ef7aca950a085468ff7ee761129 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,9 +63,15 @@ $(DEB): $(BUILDDIR)
 
 .PHONY: dsc
 dsc: $(DSC)
+       rm -rf $(BUILDDIR) $(DSC)
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
-       lintian $(DSC)
+
+sbuild: $(DSC)
+       sbuild $(DSC)
 
 .PHONY: clean
 clean: