From 5a146414db9892f6b363e475e97d6fd1d15c8d2a Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 11 May 2024 20:12:51 +0200 Subject: [PATCH] make: symlink fonts / plugins on install --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ea1f8d9d8..c7c8196d9 100644 --- a/Makefile +++ b/Makefile @@ -94,13 +94,9 @@ ifdef SHIP_SHARED_STL $(STRIP) --strip-unneeded $(INSTALL_DIR)/koreader/libs/$(notdir $(SHARED_STL_LIB)) endif @echo "[*] Install plugins" - @# TODO: link istead of cp? - $(RCP) plugins/. $(INSTALL_DIR)/koreader/plugins/. - @# purge deleted plugins - for d in $$(ls $(INSTALL_DIR)/koreader/plugins); do \ - test -d plugins/$$d || rm -rf $(INSTALL_DIR)/koreader/plugins/$$d ; done + $(SYMLINK) $(abspath plugins) $(INSTALL_DIR)/koreader/ @echo "[*] Install resources" - $(RCP) -pL resources/fonts/. $(INSTALL_DIR)/koreader/fonts/. + $(SYMLINK) $(abspath resources/fonts/*) $(INSTALL_DIR)/koreader/fonts/ install -d $(INSTALL_DIR)/koreader/{screenshots,data/{dict,tessdata},fonts/host,ota} ifeq ($(IS_RELEASE),1) @echo "[*] Clean up, remove unused files for releases"