summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index 636c93154..b6164c03c 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -87,6 +87,9 @@ $(1):
git clone --progress --depth 1 $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
if [ $$$$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
fi; \
+ if [ ! -z "$${PKG_GIT_SUBMODULE}" ]; then \
+ (cd $${PKG_NAME}-$${PKG_VERSION}; git submodule update --init --recursive) $(DL_TRACE); \
+ fi; \
rm -rf $${PKG_NAME}-$${PKG_VERSION}/.git; \
tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
touch $$$${filename}.nohash; \