buildsys: switch to submodules
This commit is contained in:
parent
56d9662c48
commit
8a19f2ad5d
19
Makefile
19
Makefile
@ -8,10 +8,10 @@ SPLPKGREL=pve9~bpo90
|
|||||||
ZFSPKGVER=${ZFSVER}-${ZFSPKGREL}
|
ZFSPKGVER=${ZFSVER}-${ZFSPKGREL}
|
||||||
SPLPKGVER=${ZFSVER}-${SPLPKGREL}
|
SPLPKGVER=${ZFSVER}-${SPLPKGREL}
|
||||||
|
|
||||||
SPLDIR=pkg-spl
|
SPLDIR=spl-build
|
||||||
SPLSRC=pkg-spl.tar.gz
|
SPLSRC=spl-debian
|
||||||
ZFSDIR=pkg-zfs
|
ZFSDIR=zfs-build
|
||||||
ZFSSRC=pkg-zfs.tar.gz
|
ZFSSRC=zfs-debian
|
||||||
|
|
||||||
SPL_DEBS= \
|
SPL_DEBS= \
|
||||||
spl_${SPLPKGVER}_amd64.deb
|
spl_${SPLPKGVER}_amd64.deb
|
||||||
@ -36,10 +36,16 @@ deb: ${DEBS}
|
|||||||
dinstall: ${DEBS}
|
dinstall: ${DEBS}
|
||||||
dpkg -i ${DEBS}
|
dpkg -i ${DEBS}
|
||||||
|
|
||||||
|
.PHONY: submodule
|
||||||
|
submodule:
|
||||||
|
test -f "${ZFSSRC}/debian/changelog" || git submodule update --init
|
||||||
|
test -f "${SPLSRC}/debian/changelog" || git submodule update --init
|
||||||
|
|
||||||
.PHONY: spl
|
.PHONY: spl
|
||||||
spl ${SPL_DEBS}: ${SPLSRC}
|
spl ${SPL_DEBS}: ${SPLSRC}
|
||||||
rm -rf ${SPLDIR}
|
rm -rf ${SPLDIR}
|
||||||
tar xf ${SPLSRC}
|
mkdir ${SPLDIR}
|
||||||
|
cp -a ${SPLSRC}/* ${SPLDIR}/
|
||||||
mv ${SPLDIR}/debian/changelog ${SPLDIR}/debian/changelog.org
|
mv ${SPLDIR}/debian/changelog ${SPLDIR}/debian/changelog.org
|
||||||
cat spl-changelog.Debian ${SPLDIR}/debian/changelog.org > ${SPLDIR}/debian/changelog
|
cat spl-changelog.Debian ${SPLDIR}/debian/changelog.org > ${SPLDIR}/debian/changelog
|
||||||
cd ${SPLDIR}; ln -s ../spl-patches patches
|
cd ${SPLDIR}; ln -s ../spl-patches patches
|
||||||
@ -50,7 +56,8 @@ spl ${SPL_DEBS}: ${SPLSRC}
|
|||||||
.PHONY: zfs
|
.PHONY: zfs
|
||||||
zfs ${ZFS_DEBS} ${ZFS_TRANS_DEBS}: ${ZFSSRC}
|
zfs ${ZFS_DEBS} ${ZFS_TRANS_DEBS}: ${ZFSSRC}
|
||||||
rm -rf ${ZFSDIR}
|
rm -rf ${ZFSDIR}
|
||||||
tar xf ${ZFSSRC}
|
mkdir ${ZFSDIR}
|
||||||
|
cp -a ${ZFSSRC}/* ${ZFSDIR}/
|
||||||
mv ${ZFSDIR}/debian/changelog ${ZFSDIR}/debian/changelog.org
|
mv ${ZFSDIR}/debian/changelog ${ZFSDIR}/debian/changelog.org
|
||||||
cat zfs-changelog.Debian ${ZFSDIR}/debian/changelog.org > ${ZFSDIR}/debian/changelog
|
cat zfs-changelog.Debian ${ZFSDIR}/debian/changelog.org > ${ZFSDIR}/debian/changelog
|
||||||
cd ${ZFSDIR}; ln -s ../zfs-patches patches
|
cd ${ZFSDIR}; ln -s ../zfs-patches patches
|
||||||
|
Loading…
Reference in New Issue
Block a user