From 4fb5864a6c9f4117edd23f8a14ef6efddf09fcb8 Mon Sep 17 00:00:00 2001 From: Tom Ross Date: Mon, 2 Mar 2009 06:13:18 +0000 Subject: 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 --- tools/functions.make | 4 ++-- tools/genlang | 10 +++++----- tools/make.inc | 4 ++-- tools/root.make | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'tools') diff --git a/tools/functions.make b/tools/functions.make index b16bce3088..6748962d6a 100644 --- a/tools/functions.make +++ b/tools/functions.make @@ -32,9 +32,9 @@ c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) mkdepfile = $(shell \ $(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h $(2) | \ $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) | \ - sed -e "s: lang.h: $(BUILDDIR)/lang.o:" \ + sed -e "s: lang.h: $(BUILDDIR)/lang/lang_core.o:" \ -e "s: sysfont.h: $(BUILDDIR)/sysfont.h:" \ - -e "s: max_language_size.h: $(BUILDDIR)/max_language_size.h:" \ + -e "s: max_language_size.h: $(BUILDDIR)/lang/max_language_size.h:" \ -e "s: bitmaps/: $(BUILDDIR)/bitmaps/:g" \ -e "s: pluginbitmaps/: $(BUILDDIR)/pluginbitmaps/:g" \ -e "s: lib/: $(APPSDIR)/plugins/lib/:g" \ diff --git a/tools/genlang b/tools/genlang index 9f9e904312..05183b8d67 100755 --- a/tools/genlang +++ b/tools/genlang @@ -535,13 +535,13 @@ if ($sortfile) { if($prefix) { # We create a .c and .h file - open(HFILE, ">$prefix.h") || - die "Error: couldn't create file $prefix.h\n"; - open(CFILE, ">$prefix.c") || - die "Error: couldn't create file $prefix.c\n"; + open(HFILE, ">$prefix/lang.h") || + die "Error: couldn't create file $prefix/lang.h\n"; + open(CFILE, ">$prefix/lang_core.c") || + die "Error: couldn't create file $prefix/lang_core.c\n"; # get header file name - $headername = "$prefix.h"; + $headername = "$prefix/lang.h"; $headername =~ s/(.*\/)*//; print HFILE <