]> git.proxmox.com Git - proxmox-ve.git/commitdiff
buildsys: add DSC & sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 18:23:17 +0000 (20:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 18:23:17 +0000 (20:23 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index b35eaeae3e77340c04c55bca3d028f94089738d6..056df42203bba77f8625f68e7937cfa69d7902c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ PACKAGE=proxmox-ve
 GITVERSION:=$(shell git rev-parse HEAD)
 
 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
 
 PVE_DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 PVE_HEADERS_DEB=pve-headers_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
@@ -26,6 +27,17 @@ $(PVE_DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
        lintian $(DEBS)
 
+dsc: $(DSC)
+       $(MAKE) clean
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
+$(DSC): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -S -uc -us
+
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 .PHONY: upload
 upload: $(DEBS)
        tar cf - $(DEBS)|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH)