summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-15 07:49:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-15 07:49:47 +0000
commit50424aec2e3edbcbcf8ffb9c05083e02caae5ac1 (patch)
tree9b14f765350d53cb63ec6f209edc971922d151bb
parent3a0bde6735b34ee367ac9114354dd7e6460a4575 (diff)
downloadrockbox-50424aec2e3edbcbcf8ffb9c05083e02caae5ac1.tar.gz
rockbox-50424aec2e3edbcbcf8ffb9c05083e02caae5ac1.zip
generate a raw list from the docs/CREDITS file and include that in credits.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2639 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 920bd07915..a36bf527cd 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -16,6 +16,7 @@ OC = sh-elf-objcopy
LANGUAGE = english
FIRMWARE := ../firmware
+DOCSDIR := ../docs
INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I$(FIRMWARE)/malloc -I. -I$(OBJDIR)
@@ -74,6 +75,13 @@ $(OBJDIR)/archos.asm: $(OBJDIR)/archos.bin
$(OBJDIR)/$(OUTNAME) : $(OBJDIR)/archos.bin
../tools/scramble $(OBJDIR)/archos.bin $(OBJDIR)/$(OUTNAME)
+$(OBJDIR)/credits.raw: $(DOCSDIR)/CREDITS
+ perl credits.pl < $< > $@
+
+$(OBJDIR)/credits.o: credits.c credits.h $(OBJDIR)/credits.raw
+ @mkdir -p `dirname $@`
+ $(CC) $(CFLAGS) -c $< -o $@
+
$(OBJDIR)/%.o: %.c
@mkdir -p `dirname $@`
$(CC) $(CFLAGS) -c $< -o $@