buildsys: generate clean orig source tarball for DSC
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1995e62236
commit
88588cfead
8
Makefile
8
Makefile
@ -3,6 +3,7 @@ include /usr/share/dpkg/default.mk
|
|||||||
|
|
||||||
ZFSDIR=zfs-linux_$(DEB_VERSION_UPSTREAM)
|
ZFSDIR=zfs-linux_$(DEB_VERSION_UPSTREAM)
|
||||||
ZFSSRC=upstream
|
ZFSSRC=upstream
|
||||||
|
ORIG_SRC_TAR=$(ZFSDIR).orig.tar.gz
|
||||||
|
|
||||||
ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb
|
ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb
|
||||||
|
|
||||||
@ -56,7 +57,10 @@ $(ZFS_DEB1): $(ZFSDIR)
|
|||||||
cd $(ZFSDIR); dpkg-buildpackage -b -uc -us
|
cd $(ZFSDIR); dpkg-buildpackage -b -uc -us
|
||||||
lintian $(DEBS)
|
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)
|
tar czf zfs-linux_$(ZFSVER).orig.tar.gz $(ZFSDIR)
|
||||||
cd $(ZFSDIR); dpkg-buildpackage -S -uc -us -d
|
cd $(ZFSDIR); dpkg-buildpackage -S -uc -us -d
|
||||||
lintian $@
|
lintian $@
|
||||||
@ -70,7 +74,7 @@ $(ZFSDIR): $(ZFSSRC)/README.md $(ZFSSRC) debian
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
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
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user