From 805040484870d54bcee055049ad7f62f7e46192d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 25 Sep 2002 14:15:07 +0000 Subject: lang build fix git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2417 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/Makefile | 11 ++++++++--- 1 file 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 -- cgit v1.2.3