mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add gettext related target to Makefile
This commit is contained in:
15
Makefile
15
Makefile
@@ -17,6 +17,14 @@ EMU_DIR=emu
|
||||
# files to copy from main directory
|
||||
LUA_FILES=reader.lua
|
||||
|
||||
# for gettext
|
||||
DOMAIN=koreader
|
||||
TEMPLATE_DIR=l10n/templates
|
||||
KOREADER_MISC_TOOL=../misc
|
||||
XGETTEXT_BIN=$(KOREADER_MISC_TOOL)/gettext/lua_xgettext.py
|
||||
MO_DIR=i18n
|
||||
|
||||
|
||||
all: $(KOR_BASE)/koreader-base $(KOR_BASE)/extr
|
||||
|
||||
$(KOR_BASE)/koreader-base $(KOR_BASE)/extr:
|
||||
@@ -71,3 +79,10 @@ customupdate: $(KOR_BASE)/koreader-base $(KOR_BASE)/extr
|
||||
rm -rf $(INSTALL_DIR)
|
||||
# @TODO write an installation script for KUAL (houqp)
|
||||
|
||||
|
||||
pot:
|
||||
$(XGETTEXT_BIN) reader.lua `find frontend -iname "*.lua"` \
|
||||
> $(TEMPLATE_DIR)/$(DOMAIN).pot
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user