[35] | 1 | LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@ |
---|
| 2 | |
---|
[0] | 3 | EPS_IMAGES18 = |
---|
| 4 | |
---|
[41] | 5 | EPS_IMAGES27 = |
---|
| 6 | |
---|
| 7 | EPS_IMAGES36 = \ |
---|
| 8 | adaptors1.eps \ |
---|
| 9 | adaptors2.eps \ |
---|
[40] | 10 | splitnodes1.eps \ |
---|
| 11 | splitnodes2.eps |
---|
| 12 | |
---|
[0] | 13 | EPS_IMAGES = \ |
---|
[40] | 14 | $(EPS_IMAGES18) \ |
---|
[41] | 15 | $(EPS_IMAGES27) \ |
---|
| 16 | $(EPS_IMAGES36) |
---|
[0] | 17 | |
---|
| 18 | PNG_IMAGES = \ |
---|
| 19 | $(EPS_IMAGES:%.eps=gen-images/%.png) |
---|
| 20 | |
---|
[17] | 21 | DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc)) |
---|
| 22 | |
---|
[0] | 23 | GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 |
---|
| 24 | |
---|
[17] | 25 | all: demos html |
---|
[0] | 26 | |
---|
| 27 | $(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps |
---|
[17] | 28 | -mkdir -p gen-images |
---|
[0] | 29 | $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $< |
---|
| 30 | |
---|
[40] | 31 | $(EPS_IMAGES27:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps |
---|
| 32 | -mkdir -p gen-images |
---|
| 33 | $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $< |
---|
| 34 | |
---|
[41] | 35 | $(EPS_IMAGES36:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps |
---|
| 36 | -mkdir -p gen-images |
---|
| 37 | $(GS_COMMAND) -sDEVICE=pngalpha -r36 -sOutputFile=$@ $< |
---|
| 38 | |
---|
[17] | 39 | html: Doxyfile-gen $(PNG_IMAGES) |
---|
| 40 | -mkdir -p gen-dox |
---|
[59] | 41 | -mkdir -p gen-pdf-dox |
---|
[17] | 42 | ./scripts/titlegen.py |
---|
[0] | 43 | doxygen Doxyfile |
---|
| 44 | |
---|
[59] | 45 | pdf: Doxyfile-gen $(PNG_IMAGES) |
---|
| 46 | -mkdir -p gen-dox |
---|
| 47 | -mkdir -p gen-pdf-dox |
---|
| 48 | ./scripts/titlegen.py |
---|
| 49 | doxygen DoxyfilePdf |
---|
| 50 | make -C latex |
---|
| 51 | |
---|
[17] | 52 | demos: $(DEMOS) |
---|
| 53 | |
---|
| 54 | Doxyfile-gen: |
---|
| 55 | sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \ |
---|
| 56 | -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \ |
---|
| 57 | < Doxyfile.in >Doxyfile |
---|
[59] | 58 | sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \ |
---|
| 59 | -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \ |
---|
| 60 | < DoxyfilePdf.in >DoxyfilePdf |
---|
[17] | 61 | |
---|
[0] | 62 | clean: |
---|
| 63 | -rm -rf html |
---|
| 64 | -rm -f doxygen.log |
---|
| 65 | -rm -f $(PNG_IMAGES) |
---|
| 66 | -rm -rf gen-images |
---|
[17] | 67 | -rm -rf $(DEMOS) |
---|
[0] | 68 | |
---|
| 69 | update-external-tags: |
---|
[35] | 70 | wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-$(LIBSTDCXX_VERSION)/libstdc++.tag && \ |
---|
[0] | 71 | mv libstdc++.tag.tmp libstdc++.tag || \ |
---|
| 72 | rm libstdc++.tag.tmp |
---|
[34] | 73 | wget -O lemon.tag.tmp @make_lemon_doc_prefix@/lemon.tag && \ |
---|
[0] | 74 | mv lemon.tag.tmp lemon.tag || \ |
---|
| 75 | rm lemon.tag.tmp |
---|
| 76 | |
---|
[17] | 77 | |
---|
| 78 | $(DEMOS): demo/build/%: demo/%.cc |
---|
| 79 | -mkdir -p demo/build |
---|
[52] | 80 | g++ -o $@ @lemon_cflags@ $< @lemon_libs@ \ |
---|
[17] | 81 | -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \ |
---|
| 82 | -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \ |
---|
| 83 | -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \ |
---|
| 84 | -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \ |
---|
| 85 | -Wold-style-cast -Wno-unknown-pragmas \ |
---|
[52] | 86 | -ggdb -O0 |
---|
[17] | 87 | |
---|
| 88 | |
---|
| 89 | .PHONY: update-external-tags html demos Doxyfile-gen |
---|
| 90 | |
---|