make: ensure base/Makefile.defs can be included

Automatically run `fetchthirdparty`.
This commit is contained in:
Benoit Pierre
2024-05-11 20:12:42 +02:00
committed by Frans de Jonge
parent 3f8f87d294
commit 5efba26d80

View File

@@ -1,9 +1,7 @@
# koreader-base directory
KOR_BASE?=base
# the repository might not have been checked out yet, so make this
# able to fail:
-include $(KOR_BASE)/Makefile.defs
include $(KOR_BASE)/Makefile.defs
# We want VERSION to carry the version of the KOReader main repo, not that of koreader-base
VERSION:=$(shell git describe HEAD)
@@ -157,7 +155,7 @@ coverage: $(INSTALL_DIR)/koreader/.luacov
+$$(($$(grep -nm1 -e "^Summary$$" luacov.report.out|cut -d: -f1)-1)) \
luacov.report.out
fetchthirdparty:
$(KOR_BASE)/Makefile.defs fetchthirdparty:
git submodule init
git submodule sync
ifneq (,$(CI))