mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01: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).
31 lines
1.2 KiB
Makefile
31 lines
1.2 KiB
Makefile
KINDLE_DIR = $(PLATFORM_DIR)/kindle
|
|
KINDLE_PACKAGE = koreader-$(DIST)$(KODEDUG_SUFFIX)-$(VERSION).zip
|
|
# Note: the targz extension is intended to keep ISP from caching the file (Cf. koreader#1644).
|
|
KINDLE_PACKAGE_OTA = koreader-$(DIST)$(KODEDUG_SUFFIX)-$(VERSION).targz
|
|
|
|
# Don't bundle launchpad on touch devices..
|
|
ifeq ($(TARGET), kindle-legacy)
|
|
KINDLE_LEGACY_LAUNCHER = launchpad
|
|
endif
|
|
|
|
define UPDATE_PATH_EXCLUDES +=
|
|
tools
|
|
endef
|
|
|
|
update: all
|
|
# ensure that the binaries were built for ARM
|
|
file --dereference $(INSTALL_DIR)/koreader/luajit | grep ARM
|
|
# Kindle launching scripts
|
|
$(SYMLINK) $(KINDLE_DIR)/extensions $(INSTALL_DIR)/
|
|
$(SYMLINK) $(KINDLE_DIR)/launchpad $(INSTALL_DIR)/
|
|
$(SYMLINK) $(KINDLE_DIR)/koreader.sh $(INSTALL_DIR)/koreader/
|
|
$(SYMLINK) $(KINDLE_DIR)/libkohelper.sh $(INSTALL_DIR)/koreader/
|
|
$(SYMLINK) $(KINDLE_DIR)/libkohelper.sh $(INSTALL_DIR)/extensions/koreader/bin/
|
|
$(SYMLINK) $(COMMON_DIR)/spinning_zsync $(INSTALL_DIR)/koreader/
|
|
$(SYMLINK) $(KINDLE_DIR)/wmctrl $(INSTALL_DIR)/koreader/
|
|
# Create packages.
|
|
$(strip $(call mkupdate,$(KINDLE_PACKAGE))) extensions $(KINDLE_LEGACY_LAUNCHER)
|
|
$(strip $(call mkupdate,$(KINDLE_PACKAGE_OTA))) extensions $(KINDLE_LEGACY_LAUNCHER)
|
|
|
|
PHONY += update
|