>From 4f9a001435634948c6b2ec7a720bdbc45b243192 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Sat, 7 Apr 2012 14:18:11 +0200
Subject: [PATCH 1/2] Let the Makefile copy the website logo according to src/logik.

---
 Makefile |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index fdd95df..db87a20 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 sed_commands
 
+DATE := $(shell date +%m%d)
 
-all: $(TARGETS)
+LOGO_FILES := $(wildcard src/logik/$(DATE).png)
+
+ifeq ($(LOGO_FILES),)
+LOGO_FILES := $(wildcard src/logik/$(DATE)-standard)
+endif
+
+all: $(LOGO_FILES) $(TARGETS)
 
 clean:
 	rm -f $(TARGETS)
@@ -36,5 +43,11 @@ X' >> $@
 	echo '</channel>' >> $@
 	echo '</rss>' >> $@
 
+src/logik/$(DATE)-standard:
+	cmp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png || \
+	cp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png
+
+src/logik/$(DATE).png:
+	cmp $@ htdocs/ffmpeg-logo.png || cp $@ htdocs/ffmpeg-logo.png
 
-.PHONY: all clean
+.PHONY: all clean src/logik/$(DATE)-standard src/logik/$(DATE).png
-- 
1.7.4.3

