summaryrefslogtreecommitdiff
path: root/apps/lang/lang.make
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-27 01:10:34 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-27 14:58:38 -0400
commit2305966d847f9891d9b5589abd8c52a176d3c3fa (patch)
treefd6a046a1716f9b974f266f997f404681ecb42d2 /apps/lang/lang.make
parentc81e1e1bf1addf05af62d14047fad3a3cfb4c76c (diff)
downloadrockbox-2305966d847f9891d9b5589abd8c52a176d3c3fa.tar.gz
rockbox-2305966d847f9891d9b5589abd8c52a176d3c3fa.zip
updatelang: New tool to update language files.
Change-Id: I3c18bb34770b4b4b321199149a2ea693dfbdb7f4
Diffstat (limited to 'apps/lang/lang.make')
-rw-r--r--apps/lang/lang.make6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/lang/lang.make b/apps/lang/lang.make
index c5db820326..807ac0f53f 100644
--- a/apps/lang/lang.make
+++ b/apps/lang/lang.make
@@ -21,7 +21,7 @@ CLEANOBJS += $(BUILDDIR)/lang/max_language_size.h $(BUILDDIR)/lang/lang*
21#DUMMY := $(shell mkdir -p $(BUILDDIR)/apps/lang) 21#DUMMY := $(shell mkdir -p $(BUILDDIR)/apps/lang)
22 22
23# Calculate the maximum language size. Currently based on the file size 23# Calculate the maximum language size. Currently based on the file size
24# of the largest lng file. Subtract 10 due to HEADER_SIZE and 24# of the largest lng file. Subtract 10 due to HEADER_SIZE and
25# SUBHEADER_SIZE. 25# SUBHEADER_SIZE.
26# TODO: In the future generate this file within genlang or another script 26# TODO: In the future generate this file within genlang or another script
27# in order to only calculate the maximum size based on the core strings. 27# in order to only calculate the maximum size based on the core strings.
@@ -47,10 +47,10 @@ $(BUILDDIR)/lang_enum.h: $(BUILDDIR)/lang/lang.h
47 47
48# NOTE: for some weird reasons in GNU make, multi targets rules WITH patterns actually express 48# NOTE: for some weird reasons in GNU make, multi targets rules WITH patterns actually express
49# the fact that the two files are created as the result of one invocation of the rule 49# the fact that the two files are created as the result of one invocation of the rule
50$(BUILDDIR)/%.lng $(BUILDDIR)/%.vstrings: $(ROOTDIR)/%.lang $(BUILDDIR)/apps/genlang-features 50$(BUILDDIR)/%.lng $(BUILDDIR)/%.vstrings: $(ROOTDIR)/%.lang $(BUILDDIR)/apps/genlang-features $(TOOLSDIR)/genlang $(TOOLSDIR)/updatelang
51 $(call PRINTS,GENLANG $(subst $(ROOTDIR)/,,$<)) 51 $(call PRINTS,GENLANG $(subst $(ROOTDIR)/,,$<))
52 $(SILENT)mkdir -p $(dir $@) 52 $(SILENT)mkdir -p $(dir $@)
53 $(SILENT)$(TOOLSDIR)/genlang -u -e=$(APPSDIR)/lang/$(ENGLISH).lang $< > $@.tmp 53 $(SILENT)$(TOOLSDIR)/updatelang $(APPSDIR)/lang/$(ENGLISH).lang $< $@.tmp
54 $(SILENT)$(TOOLSDIR)/genlang -e=$(APPSDIR)/lang/$(ENGLISH).lang -t=$(MODELNAME):`cat $(BUILDDIR)/apps/genlang-features` -i=$(TARGET_ID) -b=$*.lng -c=$*.vstrings $@.tmp 54 $(SILENT)$(TOOLSDIR)/genlang -e=$(APPSDIR)/lang/$(ENGLISH).lang -t=$(MODELNAME):`cat $(BUILDDIR)/apps/genlang-features` -i=$(TARGET_ID) -b=$*.lng -c=$*.vstrings $@.tmp
55 $(SILENT)rm -f $@.tmp 55 $(SILENT)rm -f $@.tmp
56 56