buildsys: align variable names with our commonly used ones
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
362d3432be
commit
149fd91bb2
37
Makefile
37
Makefile
@ -1,9 +1,11 @@
|
|||||||
include /usr/share/dpkg/default.mk
|
include /usr/share/dpkg/default.mk
|
||||||
# source form https://github.com/zfsonlinux/
|
# source form https://github.com/zfsonlinux/
|
||||||
|
|
||||||
ZFSDIR=zfs-linux_$(DEB_VERSION_UPSTREAM)
|
PACKAGE = zfs-linux
|
||||||
ZFSSRC=upstream
|
|
||||||
ORIG_SRC_TAR=$(ZFSDIR).orig.tar.gz
|
SRCDIR = upstream
|
||||||
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
|
ORIG_SRC_TAR = $(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
||||||
|
|
||||||
ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb
|
ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb
|
||||||
|
|
||||||
@ -47,33 +49,32 @@ dinstall: $(DEBS)
|
|||||||
|
|
||||||
.PHONY: submodule
|
.PHONY: submodule
|
||||||
submodule:
|
submodule:
|
||||||
test -f "$(ZFSSRC)/README.md" || git submodule update --init
|
test -f "$(SRCDIR)/README.md" || git submodule update --init
|
||||||
$(ZFSSRC)/README.md: submodule
|
|
||||||
|
$(SRCDIR)/README.md: submodule
|
||||||
|
|
||||||
.PHONY: zfs
|
.PHONY: zfs
|
||||||
zfs: $(DEBS)
|
zfs: $(DEBS)
|
||||||
$(ZFS_DEB2) $(ZFS_DBG_DEBS): $(ZFS_DEB1)
|
$(ZFS_DEB2) $(ZFS_DBG_DEBS): $(ZFS_DEB1)
|
||||||
$(ZFS_DEB1): $(ZFSDIR)
|
$(ZFS_DEB1): $(BUILDDIR)
|
||||||
cd $(ZFSDIR); dpkg-buildpackage -b -uc -us
|
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
|
||||||
lintian $(DEBS)
|
lintian $(DEBS)
|
||||||
|
|
||||||
$(ORIG_SRC_TAR): $(ZFSDIR)
|
$(ORIG_SRC_TAR): $(BUILDDIR)
|
||||||
tar czf $(ORIG_SRC_TAR) --exclude="$(ZFSDIR)/debian" $(ZFSDIR)
|
tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
|
||||||
|
|
||||||
$(ZFS_DSC): $(ZFSDIR) $(ORIG_SRC_TAR)
|
$(ZFS_DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
|
||||||
tar czf zfs-linux_$(ZFSVER).orig.tar.gz $(ZFSDIR)
|
cd $(BUILDDIR); dpkg-buildpackage -S -uc -us -d
|
||||||
cd $(ZFSDIR); dpkg-buildpackage -S -uc -us -d
|
|
||||||
lintian $@
|
lintian $@
|
||||||
|
|
||||||
sbuild: $(ZFS_DSC)
|
sbuild: $(ZFS_DSC)
|
||||||
sbuild $(ZFS_DSC)
|
sbuild $(ZFS_DSC)
|
||||||
|
|
||||||
$(ZFSDIR): $(ZFSSRC)/README.md $(ZFSSRC) debian
|
$(BUILDDIR): $(SRCDIR)/README.md $(SRCDIR) debian
|
||||||
rm -rf $(ZFSDIR) $(ZFSDIR).tmp
|
rm -rf $@ $@.tmp
|
||||||
cp -a $(ZFSSRC) $(ZFSDIR).tmp
|
cp -a $(SRCDIR) $@.tmp
|
||||||
cp -a debian $(ZFSDIR).tmp/debian
|
cp -a debian $@.tmp/debian
|
||||||
mv $(ZFSDIR).tmp $(ZFSDIR)
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user