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
This commit is contained in:
parent
7526cf70c3
commit
a738726bb5
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue