summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-25 14:15:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-25 14:15:07 +0000
commit805040484870d54bcee055049ad7f62f7e46192d (patch)
tree641c7884c6c8ff7bf1f1f479530bc8b1efdea8a8
parenta738726bb550d0eca41a73a6a4cf6d5c352a5036 (diff)
lang build fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2417 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/win32/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile
index 803cc64fef..28e0eea16c 100644
--- a/uisimulator/win32/Makefile
+++ b/uisimulator/win32/Makefile
@@ -91,7 +91,9 @@ $(OBJDIR)/uisw32-res.o: uisw32.rc
$(WINDRES) -i $< -o $@
clean:
- $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/uisw32-res.o
+ $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/uisw32-res.o \
+ $(OBJDIR)/lang.[cho] $(OBJDIR)/build.lang $(OBJDIR)/*.o \
+ $(OBJDIR)/sysfont.c
$(RM) -r $(DEPS)
distclean: clean
@@ -163,8 +165,11 @@ $(OBJDIR)/playlist.o: $(APPDIR)/playlist.c
$(OBJDIR)/showtext.o: $(APPDIR)/showtext.c
$(CC) $(APPCFLAGS) -c $< -o $@
-$(OBJDIR)/lang.o: $(APPDIR)/lang/$(LANGUAGE).lang
- $(TOOLSDIR)/genlang -p=$(OBJDIR)/lang $<
+$(OBJDIR)/build.lang: $(APPDIR)/lang/$(LANGUAGE).lang
+ perl $(TOOLSDIR)/uplang $(APPDIR)/lang/english.lang $< > $@
+
+$(OBJDIR)/lang.o: $(OBJDIR)/build.lang
+ perl -s $(TOOLSDIR)/genlang -p=$(OBJDIR)/lang $<
$(CC) $(CFLAGS) -c $(OBJDIR)/lang.c -o $@
$(OBJDIR)/lcd-recorder.o: $(DRIVERS)/lcd-recorder.c