summaryrefslogtreecommitdiff
path: root/apps/lang
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2009-03-02 06:13:18 +0000
committerTom Ross <midgey@rockbox.org>2009-03-02 06:13:18 +0000
commit4fb5864a6c9f4117edd23f8a14ef6efddf09fcb8 (patch)
treec09a4b900a7a6fe7b6b3ccfa42d751f9e0caf69d /apps/lang
parent2d8813e26ba4c185996c9552f935a2de34566e17 (diff)
Move generated lang-related files to their own directory in preparation of localizable plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20170 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/lang')
-rw-r--r--apps/lang/lang.make10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/lang/lang.make b/apps/lang/lang.make
index 01a8d10ba3..e32f084a29 100644
--- a/apps/lang/lang.make
+++ b/apps/lang/lang.make
@@ -9,23 +9,23 @@
LANGS := $(call preprocess, $(APPSDIR)/lang/SOURCES)
LANGOBJ := $(LANGS:$(ROOTDIR)/%.lang=$(BUILDDIR)/%.lng)
-LANG_O = $(BUILDDIR)/lang.o
+LANG_O = $(BUILDDIR)/lang/lang_core.o
-CLEANOBJS += $(BUILDDIR)/max_language_size.h $(BUILDDIR)/lang.*
+CLEANOBJS += $(BUILDDIR)/lang/max_language_size.h $(BUILDDIR)/lang/lang*
# $(BUILDDIR)/apps/lang must exist before we create dependencies on it,
# otherwise make will simply ignore those dependencies.
# Therefore we create it here.
#DUMMY := $(shell mkdir -p $(BUILDDIR)/apps/lang)
-$(BUILDDIR)/max_language_size.h: $(LANGOBJ)
+$(BUILDDIR)/lang/max_language_size.h: $(LANGOBJ)
$(call PRINTS,Create $(notdir $@))
$(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln $(BUILDDIR)/apps/lang/* | awk '{print $$5}' | sort -n | tail -1`" > $@
-$(BUILDDIR)/lang.o: $(APPSDIR)/lang/$(LANGUAGE).lang $(BUILDDIR)/apps/features
+$(BUILDDIR)/lang/lang_core.o: $(APPSDIR)/lang/$(LANGUAGE).lang $(BUILDDIR)/apps/features
$(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
- $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@
+ $(call PRINTS,CC lang_core.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang/lang_core.c -o $@
$(BUILDDIR)/%.lng : $(ROOTDIR)/%.lang $(BUILDDIR)/apps/genlang-features
$(call PRINTS,GENLANG $(subst $(ROOTDIR)/,,$<))