set svn:keywords property
[Rockbox.git] / apps / lang / Makefile
blob0be8581f5e7c5af60ab1201e67d5609854802a80
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # the header we generate
11 HEADER = $(BUILDDIR)/max_language_size.h
13 # This sets up 'SRC' based on the files mentioned in SOURCES
14 include $(TOOLSDIR)/makesrc.inc
15 SOURCES=$(SRC)
17 # OUTP is the list of files to depend upon
18 OUTP = $(patsubst %.lang,$(OBJDIR)/%.lng, $(SOURCES))
20 # the generated file with features specified genlang-style
21 FEATS=$(BUILDDIR)/apps/genlang-features
23 ifndef V
24 SILENT=@
25 endif
26 PRINTS=$(SILENT)$(call info,$(1))
28 all: $(HEADER)
30 # generic rule for creating .lng from .lang
31 $(OBJDIR)/%.lng : %.lang $(FEATS)
32 $(call PRINTS,GENLANG $<)
33 $(SILENT)$(TOOLSDIR)/genlang -e=$(APPSDIR)/lang/english.lang -t=$(MODELNAME)`cat $(FEATS)` -i=$(TARGET_ID) -b=$@ $<
35 $(HEADER): $(OUTP)
36 $(call PRINTS,Make $(HEADER))
37 echo "#define MAX_LANGUAGE_SIZE `du -b $(OBJDIR)/* |sort -n |tail -n 1 |cut -f 1`" > $(HEADER)