>From 810579f1e59f362783869264d51d8b69d79c29bb Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Fri, 6 Apr 2012 13:15:21 +0200
Subject: [PATCH 1/2] Let the Makefile copy the website logo according to src/logik.

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

diff --git a/Makefile b/Makefile
index fdd95df..2a62f89 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +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)
+
+LOGO_FILES := $(wildcard src/logik/$(DATE).*)
+
+ifeq ($(LOGO_FILES),)
+LOGO_FILES := $(wildcard src/logik/$(DATE)-standard)
+endif
+
+TARGETS := $(LOGO_FILES) $(TARGETS)
 
 all: $(TARGETS)
 
@@ -36,5 +45,11 @@ X' >> $@
 	echo '</channel>' >> $@
 	echo '</rss>' >> $@
 
+src/logik/$(DATE)-standard:
+	cmp cp 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

