summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-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