mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Instead of splitting remove / exclusion of unwanted files in 2-3 places (`all` rule, `update` rule, and update script in some cases), install the same files in debug & release builds, and exclude unwanted stuff when generating the update. This should finally fix the CI issue with OCR tests (since we don't remove the `data/dict` & `data/tessdata` directories on release build anymore).
21 lines
667 B
Makefile
21 lines
667 B
Makefile
REMARKABLE_DIR = $(PLATFORM_DIR)/remarkable
|
|
REMARKABLE_PACKAGE = koreader-remarkable$(KODEDUG_SUFFIX)-$(VERSION).zip
|
|
REMARKABLE_PACKAGE_OTA = koreader-remarkable$(KODEDUG_SUFFIX)-$(VERSION).targz
|
|
|
|
define UPDATE_PATH_EXCLUDES +=
|
|
plugins/SSH.koplugin
|
|
tools
|
|
endef
|
|
|
|
update: all
|
|
# ensure that the binaries were built for ARM
|
|
file --dereference $(INSTALL_DIR)/koreader/luajit | grep ARM
|
|
# Remarkable scripts
|
|
$(SYMLINK) $(REMARKABLE_DIR)/* $(INSTALL_DIR)/koreader/
|
|
$(SYMLINK) $(COMMON_DIR)/spinning_zsync $(INSTALL_DIR)/koreader/
|
|
# Create packages.
|
|
$(strip $(call mkupdate,$(REMARKABLE_PACKAGE)))
|
|
$(strip $(call mkupdate,$(REMARKABLE_PACKAGE_OTA)))
|
|
|
|
PHONY += update
|