From 417d56b4402d7923fe3532725305b3fc2fc2b37a Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 11 May 2024 20:12:42 +0200 Subject: [PATCH] make: small improvement Avoid duplicate `make -C base` call when building from scratch, as well as support avoiding the remaining call (using `make --assume-old=base`). --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0fef37b57..873eb39ce 100644 --- a/Makefile +++ b/Makefile @@ -72,8 +72,7 @@ APPIMAGETOOL_URL=https://github.com/AppImage/AppImageKit/releases/download/13/ap INSTALL_FILES=reader.lua setupkoenv.lua frontend resources defaults.lua datastorage.lua \ l10n tools README.md COPYING -all: $(if $(ANDROID),,$(KOR_BASE)/$(OUTPUT_DIR)/luajit) - $(MAKE) -C $(KOR_BASE) +all: base install -d $(INSTALL_DIR)/koreader rm -f $(INSTALL_DIR)/koreader/git-rev; echo "$(VERSION)" > $(INSTALL_DIR)/koreader/git-rev ifdef ANDROID @@ -125,7 +124,7 @@ ifeq ($(IS_RELEASE),1) rm -rf $(INSTALL_DIR)/koreader/data/{cr3.ini,cr3skin-format.txt,desktop,devices,manual} endif -$(KOR_BASE)/$(OUTPUT_DIR)/luajit: +base: $(MAKE) -C $(KOR_BASE) $(INSTALL_DIR)/koreader/.busted: .busted @@ -627,4 +626,4 @@ static-check: doc: make -C doc -.PHONY: all clean doc test update +.PHONY: all base clean doc test update