From a80c5e35974ed9119ce63f2a5b4e3a18bb1be4be Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 28 Sep 2023 15:37:20 +0200 Subject: [PATCH] buildsys: improve DSC target Signed-off-by: Thomas Lamprecht --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6ac278b..181407b 100644 --- a/Makefile +++ b/Makefile @@ -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)