summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index cc22591c3f..1708727273 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -194,7 +194,7 @@ $(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE)
194 194
195$(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin 195$(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin
196 $(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@ 196 $(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@
197 197
198include $(TOOLSDIR)/make.inc 198include $(TOOLSDIR)/make.inc
199 199
200# apps/features.txt is a file that (is preprocessed and) lists named features 200# apps/features.txt is a file that (is preprocessed and) lists named features
@@ -204,13 +204,13 @@ include $(TOOLSDIR)/make.inc
204# 204#
205 205
206$(OBJDIR)/features: features.txt 206$(OBJDIR)/features: features.txt
207 $(SILENT)mkdir -p `dirname $@`
207 $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ 208 $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
208 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ 209 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \
209 grep -v "^\#" | grep -v "^$$" > $@; \ 210 grep -v "^\#" | grep -v "^$$" > $@; \
210 echo "" >/dev/null 211 echo "" >/dev/null
211 212
212$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features 213$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features
213 $(SILENT)mkdir -p `dirname $@`
214 $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \ 214 $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \
215 perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS)$$feat $< 215 perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS)$$feat $<
216 $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ 216 $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@