summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-10 17:56:37 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-10 17:56:37 +0200
commitc712d598ea39dc4f90a733dc06c44617eb30bcbb (patch)
tree5c1d822deff1877ec78499761d6c19745cc31f81 /examples/Makefile
parentdadd1edab19c6f87c3e8cca7e9fbcce554dd4cb0 (diff)
implement automatic gipfelweb generation
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile31
1 files changed, 19 insertions, 12 deletions
diff --git a/examples/Makefile b/examples/Makefile
index cfea1a6..762fd9e 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,14 +1,15 @@
-images := $(wildcard *.jpg)
-slides := $(addprefix gipfelweb/slides/, $(images))
-thumbs := $(addprefix gipfelweb/thumbs/, $(images))
-html := $(addprefix gipfelweb/, $(addsuffix .html, $(basename $(images))))
-
+images := $(wildcard *.jpg)
+slides := $(addprefix gipfelweb/slides/, $(images))
+thumbs := $(addprefix gipfelweb/thumbs/, $(images))
+positions := $(addprefix gipfelweb/gipfel/, $(addsuffix .pos, $(basename $(images))))
+dumps := $(addprefix gipfelweb/gipfel/, $(addsuffix .gipf, $(basename $(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)
+gipfelweb: dirs $(slides) $(thumbs) $(dumps) $(html)
clean:
rm -rf gipfelweb
@@ -16,16 +17,22 @@ clean:
dirs:
mkdir -p gipfelweb/slides
mkdir -p gipfelweb/thumbs
+ mkdir -p gipfelweb/gipfel
gipfelweb/slides/%.jpg: %.jpg
- anytopnm $< | pamscale -xyfit 200000 600 | convert -unsharp 0.5x0.5 - - | pnmtojpeg -quality=85 > $@
+ convert -resize '10000x600>' -unsharp 0.5x0.5 -quality 90 $< $@
gipfelweb/thumbs/%.jpg: %.jpg
- anytopnm $< | pamscale -xyfit 200000 200 | pnmtojpeg -quality=80 > $@
+ convert -resize '1000x150>' -quality 80 $< $@
+
+gipfelweb/gipfel/%.pos: %.jpg
+ gipfel -e position $< > $@
-gipfelweb/%.html: %.jpg index.gipfel
- echo tbd
+gipfelweb/gipfel/%.gipf: gipfelweb/slides/%.jpg gipfelweb/gipfel/index.gipfel
+ gipfel -v 0.03 -d gipfelweb/gipfel/index.gipfel -e hills $< > $@
-index.gipfel: $(images)
- echo tbd
+gipfelweb/gipfel/index.gipfel: $(positions)
+ cat $(positions) > gipfelweb/gipfel/index.gipfel
+gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.gipf $(thumbs)
+ gipfel2html $* > $@