>From 25d5c809a411c91cfdbd4dcbe8e203756d5d5804 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Sat, 7 Apr 2012 15:20:24 +0200
Subject: [PATCH 2/2] Generate a hovertext for the logo based on src/logik/MMDD.hover.

---
 Makefile           |   18 ++++++++++++++----
 src/template_head2 |    2 +-
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index db87a20..078d2e4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,11 @@ SRCS = about bugreports consulting contact documentation download \
 
 TARGETS = $(addsuffix .html,$(addprefix htdocs/,$(SRCS))) htdocs/main.rss
 
-PAGE_DEPS = src/template_head1 src/template_head2 src/template_footer sed_commands
+PAGE_DEPS = src/template_head1 inter/template_head2 src/template_footer sed_commands
 
 DATE := $(shell date +%m%d)
 
-LOGO_FILES := $(wildcard src/logik/$(DATE).png)
+LOGO_FILES := $(wildcard src/logik/$(DATE).png src/logik/$(DATE).hover)
 
 ifeq ($(LOGO_FILES),)
 LOGO_FILES := $(wildcard src/logik/$(DATE)-standard)
@@ -22,7 +22,7 @@ clean:
 
 htdocs/%.html: src/% src/%_title $(PAGE_DEPS)
 	sed -f sed_commands $< | \
-	cat src/template_head1 $<_title src/template_head2 - \
+	cat src/template_head1 $<_title inter/template_head2 - \
 	src/template_footer > $@
 
 htdocs/main.rss: htdocs/index.html
@@ -46,8 +46,18 @@ X' >> $@
 src/logik/$(DATE)-standard:
 	cmp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png || \
 	cp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png
+	echo "FFmpeg" > inter/template_head2_hovertext
 
 src/logik/$(DATE).png:
 	cmp $@ htdocs/ffmpeg-logo.png || cp $@ htdocs/ffmpeg-logo.png
 
-.PHONY: all clean src/logik/$(DATE)-standard src/logik/$(DATE).png
+src/logik/$(DATE).hover:
+	cmp $@ inter/template_head2_hovertext || cp $@ inter/template_head2_hovertext
+
+inter/template_head2: src/template_head2 inter/template_head2_hovertext
+	sed -e "s/HOVERTEXT/`cat $@_hovertext`/g" $< > $@
+
+inter/template_head2_hovertext:
+	test -r $@ || echo "FFmpeg" > inter/template_head2_hovertext
+
+.PHONY: all clean src/logik/$(DATE)-standard src/logik/$(DATE).png src/logik/$(DATE).hover
diff --git a/src/template_head2 b/src/template_head2
index 06e1100..22e599b 100644
--- a/src/template_head2
+++ b/src/template_head2
@@ -9,7 +9,7 @@
 
 <div id="banner">
 <a href="index.html">
-<img src="ffmpeg-logo.png" alt="FFmpeg" />
+<img src="ffmpeg-logo.png" alt="FFmpeg" title="HOVERTEXT" />
 </a>
 </div>
 
-- 
1.7.4.3

