make: avoid duplicate fetchthirdparty

When using `make fetchthirdparty` and base has not been checkout yet:
- make want to include `Makefile.defs` which is missing
- the rule for `Makefile.defs` / `fetchthirdparty` are executed
- make reload the main makefile, and execute `fetchthirdparty`
This commit is contained in:
Benoit Pierre
2024-07-31 01:55:31 +02:00
committed by Frans de Jonge
parent 040e033edb
commit d9e4376e35

View File

@@ -131,7 +131,11 @@ coverage: $(INSTALL_DIR)/koreader/.luacov
+$$(($$(grep -nm1 -e "^Summary$$" luacov.report.out|cut -d: -f1)-1)) \
luacov.report.out
$(KOR_BASE)/Makefile.defs fetchthirdparty:
ifeq (,$(wildcard $(KOR_BASE)/Makefile.defs))
$(KOR_BASE)/Makefile.defs: fetchthirdparty
endif
fetchthirdparty:
git submodule init
git submodule sync
ifneq (,$(CI))