4 $(EPS_IMAGES18) |
4 $(EPS_IMAGES18) |
5 |
5 |
6 PNG_IMAGES = \ |
6 PNG_IMAGES = \ |
7 $(EPS_IMAGES:%.eps=gen-images/%.png) |
7 $(EPS_IMAGES:%.eps=gen-images/%.png) |
8 |
8 |
|
9 DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc)) |
|
10 |
9 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 |
11 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 |
10 |
12 |
11 all: html |
13 all: demos html |
12 |
14 |
13 $(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps |
15 $(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps |
14 -mkdir gen-images |
16 -mkdir -p gen-images |
15 $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $< |
17 $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $< |
16 |
18 |
17 html: $(PNG_IMAGES) |
19 html: Doxyfile-gen $(PNG_IMAGES) |
18 -mkdir gen-dox |
20 -mkdir -p gen-dox |
19 ./titlegen.py |
21 ./scripts/titlegen.py |
20 doxygen Doxyfile |
22 doxygen Doxyfile |
|
23 |
|
24 demos: $(DEMOS) |
|
25 |
|
26 Doxyfile-gen: |
|
27 sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \ |
|
28 -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \ |
|
29 < Doxyfile.in >Doxyfile |
21 |
30 |
22 clean: |
31 clean: |
23 -rm -rf html |
32 -rm -rf html |
24 -rm -f doxygen.log |
33 -rm -f doxygen.log |
25 -rm -f $(PNG_IMAGES) |
34 -rm -f $(PNG_IMAGES) |
26 -rm -rf gen-images |
35 -rm -rf gen-images |
|
36 -rm -rf $(DEMOS) |
27 |
37 |
28 update-external-tags: |
38 update-external-tags: |
29 wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \ |
39 wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \ |
30 mv libstdc++.tag.tmp libstdc++.tag || \ |
40 mv libstdc++.tag.tmp libstdc++.tag || \ |
31 rm libstdc++.tag.tmp |
41 rm libstdc++.tag.tmp |
32 wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \ |
42 wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \ |
33 mv lemon.tag.tmp lemon.tag || \ |
43 mv lemon.tag.tmp lemon.tag || \ |
34 rm lemon.tag.tmp |
44 rm lemon.tag.tmp |
35 |
45 |
36 .PHONY: update-external-tags html |
46 |
|
47 $(DEMOS): demo/build/%: demo/%.cc |
|
48 -mkdir -p demo/build |
|
49 g++ -o $@ @lemon_cflags@ @lemon_libs@ \ |
|
50 -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \ |
|
51 -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \ |
|
52 -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \ |
|
53 -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \ |
|
54 -Wold-style-cast -Wno-unknown-pragmas \ |
|
55 -ggdb -O0 $< |
|
56 |
|
57 |
|
58 .PHONY: update-external-tags html demos Doxyfile-gen |
|
59 |