From 88588cfead151a5d8f4f717e71be4b6f4be97e88 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 20 May 2023 19:54:10 +0200 Subject: [PATCH] buildsys: generate clean orig source tarball for DSC Signed-off-by: Thomas Lamprecht --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a86644a..eb75371 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ include /usr/share/dpkg/default.mk ZFSDIR=zfs-linux_$(DEB_VERSION_UPSTREAM) ZFSSRC=upstream +ORIG_SRC_TAR=$(ZFSDIR).orig.tar.gz ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb @@ -56,7 +57,10 @@ $(ZFS_DEB1): $(ZFSDIR) cd $(ZFSDIR); dpkg-buildpackage -b -uc -us lintian $(DEBS) -$(ZFS_DSC): $(ZFSDIR) +$(ORIG_SRC_TAR): $(ZFSDIR) + tar czf $(ORIG_SRC_TAR) --exclude="$(ZFSDIR)/debian" $(ZFSDIR) + +$(ZFS_DSC): $(ZFSDIR) $(ORIG_SRC_TAR) tar czf zfs-linux_$(ZFSVER).orig.tar.gz $(ZFSDIR) cd $(ZFSDIR); dpkg-buildpackage -S -uc -us -d lintian $@ @@ -70,7 +74,7 @@ $(ZFSDIR): $(ZFSSRC)/README.md $(ZFSSRC) debian .PHONY: clean clean: - rm -rf *~ *.deb *.changes *.buildinfo *.dsc *.orig.tar.* *.debian.tar.* $(ZFSDIR) + rm -rf *~ *.deb *.changes *.buildinfo *.build *.dsc *.orig.tar.* *.debian.tar.* $(ZFSDIR) .PHONY: distclean distclean: clean