>From e87254f0d092472c718838f47949d5e3a7882bc3 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Wed, 4 Apr 2012 22:30:29 +0200
Subject: [PATCH 1/2] Let the Makefile copy the website logo according to src/logik.

---
 Makefile |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index fdd95df..67245e8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,19 @@ 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 = $(shell find src/logik -name $(DATE).*)
+
+ifneq ($(LOGO_FILES),)
+	TARGETS := logo $(TARGETS)
+else
+	LOGO_FILES = $(shell find src/logik -name $(DATE)-standard)
+
+	ifneq ($(LOGO_FILES),)
+		TARGETS := logo-standard $(TARGETS)
+	endif
+endif
 
 all: $(TARGETS)
 
@@ -36,5 +49,12 @@ X' >> $@
 	echo '</channel>' >> $@
 	echo '</rss>' >> $@
 
+logo: $(LOGO_FILES)
+
+logo-standard:
+	cp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png
+
+src/logik/*.png:
+	cp $@ htdocs/ffmpeg-logo.png
 
-.PHONY: all clean
+.PHONY: all clean src/logik/*.png
-- 
1.7.4.3

