1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile.in Wed Nov 05 17:10:54 2008 +0000
1.3 @@ -0,0 +1,59 @@
1.4 +EPS_IMAGES18 =
1.5 +
1.6 +EPS_IMAGES = \
1.7 + $(EPS_IMAGES18)
1.8 +
1.9 +PNG_IMAGES = \
1.10 + $(EPS_IMAGES:%.eps=gen-images/%.png)
1.11 +
1.12 +DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
1.13 +
1.14 +GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
1.15 +
1.16 +all: demos html
1.17 +
1.18 +$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
1.19 + -mkdir -p gen-images
1.20 + $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
1.21 +
1.22 +html: Doxyfile-gen $(PNG_IMAGES)
1.23 + -mkdir -p gen-dox
1.24 + ./scripts/titlegen.py
1.25 + doxygen Doxyfile
1.26 +
1.27 +demos: $(DEMOS)
1.28 +
1.29 +Doxyfile-gen:
1.30 + sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \
1.31 + -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \
1.32 + < Doxyfile.in >Doxyfile
1.33 +
1.34 +clean:
1.35 + -rm -rf html
1.36 + -rm -f doxygen.log
1.37 + -rm -f $(PNG_IMAGES)
1.38 + -rm -rf gen-images
1.39 + -rm -rf $(DEMOS)
1.40 +
1.41 +update-external-tags:
1.42 + wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \
1.43 + mv libstdc++.tag.tmp libstdc++.tag || \
1.44 + rm libstdc++.tag.tmp
1.45 + wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \
1.46 + mv lemon.tag.tmp lemon.tag || \
1.47 + rm lemon.tag.tmp
1.48 +
1.49 +
1.50 +$(DEMOS): demo/build/%: demo/%.cc
1.51 + -mkdir -p demo/build
1.52 + g++ -o $@ @lemon_cflags@ @lemon_libs@ \
1.53 + -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \
1.54 + -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \
1.55 + -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \
1.56 + -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \
1.57 + -Wold-style-cast -Wno-unknown-pragmas \
1.58 + -ggdb -O0 $<
1.59 +
1.60 +
1.61 +.PHONY: update-external-tags html demos Doxyfile-gen
1.62 +