mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
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)
|
all: $(TARGET) $(EXTRA_TARGETS)
|
||||||
|
|
||||||
clean:
|
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)
|
$(RM) -r $(DEPS)
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
@ -215,8 +216,11 @@ $(OBJDIR)/playlist.o: $(APPDIR)/playlist.c
|
||||||
$(OBJDIR)/showtext.o: $(APPDIR)/showtext.c
|
$(OBJDIR)/showtext.o: $(APPDIR)/showtext.c
|
||||||
$(CC) $(APPCFLAGS) -c $< -o $@
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/lang.o: $(APPDIR)/lang/$(LANGUAGE).lang
|
$(OBJDIR)/build.lang: $(APPDIR)/lang/$(LANGUAGE).lang
|
||||||
$(TOOLSDIR)/genlang -p=$(OBJDIR)/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 $@
|
$(CC) $(CFLAGS) -c $(OBJDIR)/lang.c -o $@
|
||||||
|
|
||||||
$(OBJDIR)/lcd-recorder.o: $(DRIVERS)/lcd-recorder.c
|
$(OBJDIR)/lcd-recorder.o: $(DRIVERS)/lcd-recorder.c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue