]> git.proxmox.com Git - proxmox-archive-keyring.git/commitdiff
buildsys: improve DSC target & add sbuild convenience target master
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 May 2023 15:04:54 +0000 (17:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 May 2023 15:04:54 +0000 (17:04 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 2e3add11e815545dea4dda164a5ad17ac1784f8f..27d26d078bdd83830912ab8ae8aab15b0385875a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ BUILDDIR=$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
 DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
 
 all: deb
@@ -21,6 +22,16 @@ $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
        lintian $(DEB)
 
+dsc: clean
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
+$(DSC): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -S -uc -us
+
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 .PHONY: upload
 upload: $(DEB)
        tar cf - $(DEB)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs,pbs-client,infra --dist bookworm