ensure submodule gets initialized on fresh clone and build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-24 12:52:54 +02:00
parent ae14379f41
commit 63bd3935c7

View File

@ -38,7 +38,8 @@ dinstall: ${DEBS}
.PHONY: submodule .PHONY: submodule
submodule: submodule:
test -f "${ZFSSRC}/README.markdown" || git submodule update --init test -f "$(ZFSSRC)/README.md" || git submodule update --init
$(ZFSSRC)/README.md: submodule
.PHONY: zfs .PHONY: zfs
zfs: $(ZFS_DEBS) zfs: $(ZFS_DEBS)
@ -52,7 +53,7 @@ ${ZFS_DSC}: ${ZFSDIR}
cd ${ZFSDIR}; dpkg-buildpackage -S -uc -us -d cd ${ZFSDIR}; dpkg-buildpackage -S -uc -us -d
lintian $@ lintian $@
${ZFSDIR}: $(ZFSSRC) ${ZFSPKG} ${ZFSDIR}: $(ZFSSRC)/README.md $(ZFSSRC) ${ZFSPKG}
rm -rf ${ZFSDIR} rm -rf ${ZFSDIR}
mkdir ${ZFSDIR} mkdir ${ZFSDIR}
cp -a ${ZFSSRC}/* ${ZFSDIR}/ cp -a ${ZFSSRC}/* ${ZFSDIR}/