Files
koreader-mirror/make/sony-prstux.mk
Benoit Pierre c04023f1d1 make: factorize code for generating release updates (#12655)
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).
2024-11-23 20:48:37 +01:00

20 lines
623 B
Makefile

SONY_PRSTUX_DIR = $(PLATFORM_DIR)/sony-prstux
SONY_PRSTUX_PACKAGE = koreader-sony-prstux$(KODEDUG_SUFFIX)-$(VERSION).zip
SONY_PRSTUX_PACKAGE_OTA = koreader-sony-prstux$(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
# Sony PRSTUX launching scripts
$(SYMLINK) $(SONY_PRSTUX_DIR)/*.sh $(INSTALL_DIR)/koreader
# Create packages.
$(strip $(call mkupdate,$(SONY_PRSTUX_PACKAGE)))
$(strip $(call mkupdate,$(SONY_PRSTUX_PACKAGE_OTA)))
PHONY += update