summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-09-11 07:43:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-09-11 07:43:33 +0000
commitc643692201418c631b7ea8b9c68a9595323b1d5a (patch)
treef049540d6773b422849f5334291ac81b10638f29
parent03cf6669b16f904c7a1e5a4ddabef7bd1769f8a5 (diff)
downloadrockbox-c643692201418c631b7ea8b9c68a9595323b1d5a.tar.gz
rockbox-c643692201418c631b7ea8b9c68a9595323b1d5a.zip
Make sure that the apps directory exists when building the apps/features file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14669 a1c6a512-1295-4272-9138-f99709370657
-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)
$(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin
$(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@
-
+
include $(TOOLSDIR)/make.inc
# apps/features.txt is a file that (is preprocessed and) lists named features
@@ -204,13 +204,13 @@ include $(TOOLSDIR)/make.inc
#
$(OBJDIR)/features: features.txt
+ $(SILENT)mkdir -p `dirname $@`
$(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \
grep -v "^\#" | grep -v "^$$" > $@; \
echo "" >/dev/null
$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features
- $(SILENT)mkdir -p `dirname $@`
$(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \
perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS)$$feat $<
$(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@