summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 20:09:05 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 20:09:05 +0200
commit88dfe447316eac9ac10423761a3695545313a6cd (patch)
tree89dd7eb171ae3f8e02ede86c730a3fa46fc7cf83 /examples
parent49558f7ddeb39c08410231b90482abfd01c5d151 (diff)
add gipfelweb Makefile
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644
index 0000000..cfea1a6
--- /dev/null
+++ b/examples/Makefile
@@ -0,0 +1,31 @@
+images := $(wildcard *.jpg)
+slides := $(addprefix gipfelweb/slides/, $(images))
+thumbs := $(addprefix gipfelweb/thumbs/, $(images))
+html := $(addprefix gipfelweb/, $(addsuffix .html, $(basename $(images))))
+
+
+all:
+ echo "make gipfelweb - create a HTML based we of gipfel oriented"
+ echo "images in the current directory."
+
+gipfelweb: dirs $(slides) $(thumbs) $(html)
+
+clean:
+ rm -rf gipfelweb
+
+dirs:
+ mkdir -p gipfelweb/slides
+ mkdir -p gipfelweb/thumbs
+
+gipfelweb/slides/%.jpg: %.jpg
+ anytopnm $< | pamscale -xyfit 200000 600 | convert -unsharp 0.5x0.5 - - | pnmtojpeg -quality=85 > $@
+
+gipfelweb/thumbs/%.jpg: %.jpg
+ anytopnm $< | pamscale -xyfit 200000 200 | pnmtojpeg -quality=80 > $@
+
+gipfelweb/%.html: %.jpg index.gipfel
+ echo tbd
+
+index.gipfel: $(images)
+ echo tbd
+