diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-11 22:27:55 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-11 22:27:55 +0200 |
commit | 50a00beb9598747a3c396088fd4ad311cb6cdf39 (patch) | |
tree | 47951a7898b148372e594c684ab6a745e8c944f4 /examples/Makefile | |
parent | bbb6b1845f65fe2d76ac0040e115f66be172961d (diff) |
don't export duplicates
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/examples/Makefile b/examples/Makefile index 7c26813..a863f23 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,21 +2,27 @@ 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)))) +imgpos := $(addprefix gipfelweb/gipfel/, $(addsuffix .imgs, $(basename $(images)))) +hillpos := $(addprefix gipfelweb/gipfel/, $(addsuffix .hills, $(basename $(images)))) html := $(addprefix gipfelweb/, $(addsuffix .html, $(basename $(images)))) +htmlhills := $(addprefix gipfelweb/hills/, $(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) $(dumps) $(html) +gipfelweb: dirs $(slides) $(thumbs) $(imgpos) $(hillpos) $(html) $(htmlhills) clean: + rm -rf gipfelweb/gipfel + +clobber: rm -rf gipfelweb dirs: mkdir -p gipfelweb/slides mkdir -p gipfelweb/thumbs + mkdir -p gipfelweb/hills mkdir -p gipfelweb/gipfel gipfelweb/slides/%.jpg: %.jpg @@ -28,11 +34,17 @@ gipfelweb/thumbs/%.jpg: %.jpg gipfelweb/gipfel/%.pos: %.jpg gipfel -p $< > $@ -gipfelweb/gipfel/%.gipf: gipfelweb/slides/%.jpg gipfelweb/gipfel/index.gipfel - gipfel -v 0.02 -e gipfelweb/gipfel/index.gipfel $< > $@ +gipfelweb/gipfel/%.imgs: gipfelweb/slides/%.jpg gipfelweb/gipfel/index.gipfel + gipfel -V 0.05 -e gipfelweb/gipfel/index.gipfel $< > $@ + +gipfelweb/gipfel/%.hills: gipfelweb/slides/%.jpg + gipfel -V 0.05 -E $< > $@ gipfelweb/gipfel/index.gipfel: $(positions) cat $(positions) > gipfelweb/gipfel/index.gipfel -gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.gipf $(thumbs) - gipfel2html $* > $@ +gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs $(thumbs) + gipfel2html images $* > $@ + +gipfelweb/hills/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.hills + gipfel2html hills $* > $@ |