mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
reorganize launching scripts for both kindle and kobo
so that platform specific files are collected into platform directory respectively
This commit is contained in:
17
Makefile
17
Makefile
@@ -12,8 +12,7 @@ VERSION=$(shell git describe HEAD)
|
||||
INSTALL_DIR=koreader-$(MACHINE)
|
||||
|
||||
# files to link from main directory
|
||||
INSTALL_FILES=reader.lua frontend resources koreader.sh \
|
||||
koreader_kobo.sh kobo_suspend.sh defaults.lua \
|
||||
INSTALL_FILES=reader.lua frontend resources defaults.lua \
|
||||
git-rev README.md COPYING
|
||||
|
||||
# for gettext
|
||||
@@ -47,14 +46,18 @@ endif
|
||||
mkdir -p $(INSTALL_DIR)/koreader/data/tessdata
|
||||
mkdir -p $(INSTALL_DIR)/koreader/fonts/host
|
||||
# Kindle startup
|
||||
ln -sf ../extensions $(INSTALL_DIR)/
|
||||
ln -sf ../launchpad $(INSTALL_DIR)/
|
||||
ln -sf ../kindle/extensions $(INSTALL_DIR)/
|
||||
ln -sf ../kindle/launchpad $(INSTALL_DIR)/
|
||||
ln -sf ../kindle/koreader.sh $(INSTALL_DIR)/koreader
|
||||
# Kobo startup
|
||||
mkdir -p $(INSTALL_DIR)/kobo/mnt/onboard/.kobo
|
||||
ln -sf ../../../../../fmon $(INSTALL_DIR)/kobo/mnt/onboard/.kobo/
|
||||
ln -sf ../../../../../kobo/fmon $(INSTALL_DIR)/kobo/mnt/onboard/.kobo/
|
||||
cd $(INSTALL_DIR)/kobo && tar -czhf ../KoboRoot.tgz mnt
|
||||
cp resources/koreader.png $(INSTALL_DIR)/koreader.png
|
||||
cp fmon/README.txt $(INSTALL_DIR)/README_kobo.txt
|
||||
cp kobo/fmon/README.txt $(INSTALL_DIR)/README_kobo.txt
|
||||
cp kobo/koreader_kobo.sh $(INSTALL_DIR)/koreader
|
||||
cp kobo/kobo_suspend.sh $(INSTALL_DIR)/koreader
|
||||
cp kobo/*.bin $(INSTALL_DIR)/koreader
|
||||
ifndef EMULATE_READER
|
||||
# clean up, remove unused files for releases
|
||||
rm -rf $(INSTALL_DIR)/koreader/data/{cr3.ini,cr3skin-format.txt,desktop,devices,manual}
|
||||
@@ -101,7 +104,7 @@ koboupdate: all
|
||||
zip -9 -r \
|
||||
../koreader-kobo-$(MACHINE)-$(VERSION).zip \
|
||||
KoboRoot.tgz koreader koreader.png README_kobo.txt \
|
||||
-x "koreader/resources/fonts/*" "koreader/resources/icons/src/*" "koreader/spec/*" "koreader/Kobo/*"
|
||||
-x "koreader/resources/fonts/*" "koreader/resources/icons/src/*" "koreader/spec/*"
|
||||
|
||||
pot:
|
||||
$(XGETTEXT_BIN) reader.lua `find frontend -iname "*.lua"` \
|
||||
|
||||
Reference in New Issue
Block a user