Check for submodules in SRCDIR

Change-Id: I4835c9aec33d611d0bdcd8150704866e76b49e9e
Reviewed-on: https://gerrit.libreoffice.org/51957
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2018-03-27 16:38:07 +02:00
parent 19d2ec6539
commit c4170e4bcb

View file

@ -238,7 +238,7 @@ fetch: get-submodules
ifneq (,$(wildcard $(SRCDIR)/.git))
get-submodules:
ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git)))
ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git)))
cd $(SRCDIR) && ./g -f clone
endif
ifeq ($(shell test -d $(SRCDIR)/.git; echo $$?),0)