>From dbcfecb2053bd1dcd812696d301f54972c295ecc Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Wed, 11 Apr 2012 12:48:38 +0200
Subject: [PATCH] Let the Makefile copy the website logo according to src/logik.

---
 Makefile |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9c8110d..2b341f2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,15 @@ TARGETS = $(addsuffix .html,$(addprefix htdocs/,$(SRCS))) htdocs/main.rss
 
 PAGE_DEPS = src/template_head1 src/template_head2 src/template_footer
 
+DATE := $(shell date +%m%d)
 
-all: $(TARGETS)
+ifneq ($(wildcard src/logik/$(DATE)-standard),)
+	LOGO_SRC := htdocs/FFmpeg_standard.png
+else
+	LOGO_SRC := $(wildcard src/logik/$(DATE).png)
+endif
+
+all: htdocs/ffmpeg-logo.png $(TARGETS)
 
 clean:
 	rm -f $(TARGETS)
@@ -35,5 +42,8 @@ X' >> $@
 	echo '</channel>' >> $@
 	echo '</rss>' >> $@
 
+htdocs/ffmpeg-logo.png: $(LOGO_SRC)
+	test -z $< || cmp $< $@ || cp $< $@
+	test -r $@ || cp htdocs/FFmpeg_standard.png $@
 
-.PHONY: all clean
+.PHONY: all clean htdocs/ffmpeg-logo.png
-- 
1.7.4.3

