summaryrefslogtreecommitdiff
path: root/uisimulator/x11/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-25 14:11:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-25 14:11:47 +0000
commita738726bb550d0eca41a73a6a4cf6d5c352a5036 (patch)
treea98585de986ab04e69e42e9f053f6ef436a53eb9 /uisimulator/x11/Makefile
parent7526cf70c33fd82da40c8d51108c16db63097a23 (diff)
build the language stuff correctly and an improved clean target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2416 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/Makefile')
-rw-r--r--uisimulator/x11/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index abf63cba24..074b7f02ac 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -104,7 +104,8 @@ OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o)
all: $(TARGET) $(EXTRA_TARGETS)
clean:
- $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS)
+ $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \
+ $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c
$(RM) -r $(DEPS)
distclean: clean
@@ -215,8 +216,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