summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-15 07:51:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-15 07:51:25 +0000
commit0ab96fdf701656de13d560362766b67b3ce4dc18 (patch)
tree1dbaaeee6caf65d5b456bd23f54f2771928c5169
parent64628808b78e69536b1ca345b3c7aebae51ca2d6 (diff)
downloadrockbox-0ab96fdf701656de13d560362766b67b3ce4dc18.tar.gz
rockbox-0ab96fdf701656de13d560362766b67b3ce4dc18.zip
make credits.c use the generated list of names properly as already done
in apps/Makefile git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2641 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/win32/Makefile5
-rw-r--r--uisimulator/x11/Makefile6
2 files changed, 9 insertions, 2 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile
index bcfef516ca..970c61ac6c 100644
--- a/uisimulator/win32/Makefile
+++ b/uisimulator/win32/Makefile
@@ -101,7 +101,10 @@ clean:
distclean: clean
$(RM) config.cache
-$(OBJDIR)/credits.o: $(APPDIR)/credits.c
+$(OBJDIR)/credits.raw: $(DOCSDIR)/CREDITS
+ perl $(APPDIR)/credits.pl < $< > $@
+
+$(OBJDIR)/credits.o: $(APPDIR)/credits.c $(APPDIR)/credits.h $(OBJDIR)/credits.raw
$(CC) $(APPCFLAGS) -c $< -o $@
$(OBJDIR)/menu.o: $(APPDIR)/menu.c
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index b8c996f3bf..e0dc896087 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -35,6 +35,7 @@ DRIVERS = $(FIRMWAREDIR)/drivers
COMMON = $(FIRMWAREDIR)/common
LIBMADDIR = $(PREVAPPDIR)/common/libmad
TOOLSDIR = ../../tools
+DOCSDIR = ../../docs
CC = gcc
RM = rm -f
@@ -157,7 +158,10 @@ $(OBJDIR)/mpegplay.o: $(PREVAPPDIR)/common/mpegplay.c
endif
-$(OBJDIR)/credits.o: $(APPDIR)/credits.c
+$(OBJDIR)/credits.raw: $(DOCSDIR)/CREDITS
+ perl $(APPDIR)/credits.pl < $< > $@
+
+$(OBJDIR)/credits.o: $(APPDIR)/credits.c $(APPDIR)/credits.h $(OBJDIR)/credits.raw
$(CC) $(APPCFLAGS) -c $< -o $@
$(OBJDIR)/menu.o: $(APPDIR)/menu.c