]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
buildsys: improve DSC target & add sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:25:47 +0000 (19:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:26:27 +0000 (19:26 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index cce63bf2780d7c10ef8d869a07ee5eefa10d55b9..08e7e3667f06f5e16f4cc17ccace6e4e81d107e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,15 +35,21 @@ $(DEB) $(DBG_DEB): $(BUILDDIR)
        lintian $(SIMDEB)
 
 .PHONY: dsc
-dsc: $(DSC)
+dsc:
+       $(MAKE) clean
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
-       lintian $(DSC)
+
+sbuild: $(DSC)
+       sbuild $(DSC)
 
 .PHONY: clean
 clean:
        make -C src clean
-       rm -rf $(BUILDDIR) *.tar.gz *.dsc *.deb $(PACKAGE)-*.tar.gz *.changes *.buildinfo
+       rm -rf $(PACKAGE)-[0-9]*/ *.dsc *.deb $(PACKAGE)*.tar* *.changes *.build *.buildinfo
 
 .PHONY: distclean
 distclean: clean