]> git.proxmox.com Git - proxmox-offline-mirror.git/commitdiff
buildsys: improve DSC target & add sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 May 2023 11:52:28 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 May 2023 11:52:28 +0000 (13:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 99d9df811d641ac2c421f9f9d7b52509db8e2eb3..e93d41af19bc6116030bb9d3ec8752f0323e5998 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,10 +73,15 @@ $(DEB): $(BUILDDIR)
        lintian $(DEB) $(DOC_DEB) $(HELPER_DEB)
 
 .PHONY: dsc
-dsc: $(DSC)
+dsc:
+       rm -rf $(BUILDDIR) $(DSC)
+       $(MAKE) $(DSC)
+       lintian $(DSC)
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
-       lintian $(DSC)
+
+sbuild: $(DSC)
+       sbuild $<
 
 .PHONY: dinstall
 dinstall: $(DEB)
@@ -92,5 +97,6 @@ distclean: clean
 .PHONY: clean
 clean:
        cargo clean
-       rm -rf *.deb *.buildinfo *.changes *.dsc rust-$(PACKAGE)_*.tar.?z $(PACKAGE)-*/
+       rm -f *.deb *.build *.buildinfo *.changes *.dsc rust-$(PACKAGE)*.tar*
+       rm -rf $(PACKAGE)-[0-9]*/
        find . -name '*~' -exec rm {} ';'