buildsys: improve DSC target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-09-28 15:37:20 +02:00
parent 149fd91bb2
commit a80c5e3597

View File

@ -32,10 +32,14 @@ DEBS= $(ZFS_DEB1) $(ZFS_DEB2) $(ZFS_DBG_DEBS)
ZFS_DSC = zfs-linux_$(DEB_VERSION).dsc
all: deb
.PHONY: deb
.PHONY: deb dsc
deb: $(DEBS)
.PHONY: dsc
dsc: $(ZFS_DSC)
dsc:
rm -rf *.dsc $(BUILDDIR)
$(MAKE) $(ZFS_DSC)
lintian $(ZFS_DSC)
# called from pve-kernel's Makefile to get patched sources
.PHONY: kernel
@ -65,7 +69,6 @@ $(ORIG_SRC_TAR): $(BUILDDIR)
$(ZFS_DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
cd $(BUILDDIR); dpkg-buildpackage -S -uc -us -d
lintian $@
sbuild: $(ZFS_DSC)
sbuild $(ZFS_DSC)