]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
buildsys: add dsc target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 19:54:12 +0000 (21:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 20:03:06 +0000 (22:03 +0200)
mostly for consistency with the other packages, as this is a really
trivial one, so not really benefiting from dsc/sbuild handling.

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

index df5acca8c3ad6d195f85db4e3a944b0b59cd9fda..bba81bf639846f000454a5c7380cca2c0886da48 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,11 +9,13 @@ KERNEL_DEB=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION)_all.deb
 HEADERS_DEB=pve-headers-$(KERNEL_VER)_$(DEB_VERSION)_all.deb
 
 BUILD_DIR=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION)
+DSC=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION).dsc
 
 DEBS=$(KERNEL_DEB) $(HEADERS_DEB)
 
-.PHONY: deb
+.PHONY: deb dsc
 deb: $(DEBS)
+dsc: $(DSC)
 
 $(BUILD_DIR): debian
        rm -rf $@ $@.tmp
@@ -28,6 +30,10 @@ $(KERNEL_DEB): $(BUILD_DIR)
        cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us
        lintian $(DEBS)
 
+$(DSC): $(BUILD_DIR)
+       cd $(BUILD_DIR); dpkg-buildpackage -S -uc -us
+       lintian $(DSC)
+
 .PHONY: upload
 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)