From 63bd3935c7b1310ad53b82575bf3fe155d338850 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 24 May 2019 12:52:54 +0200 Subject: [PATCH] ensure submodule gets initialized on fresh clone and build Signed-off-by: Thomas Lamprecht --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e0a83c..bb94503 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,8 @@ dinstall: ${DEBS} .PHONY: 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 zfs: $(ZFS_DEBS) @@ -52,7 +53,7 @@ ${ZFS_DSC}: ${ZFSDIR} cd ${ZFSDIR}; dpkg-buildpackage -S -uc -us -d lintian $@ -${ZFSDIR}: $(ZFSSRC) ${ZFSPKG} +${ZFSDIR}: $(ZFSSRC)/README.md $(ZFSSRC) ${ZFSPKG} rm -rf ${ZFSDIR} mkdir ${ZFSDIR} cp -a ${ZFSSRC}/* ${ZFSDIR}/