Makefile.in
author Peter Kovacs <kpeter@inf.elte.hu>
Sun, 21 Feb 2010 18:34:28 +0100
changeset 40 e1725bb7e821
parent 35 f7a4e8024952
child 41 73fdafd843d9
permissions -rw-r--r--
Port two images for SplitNodes from SVN -r3524
     1 LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@
     2 
     3 EPS_IMAGES18 =
     4 
     5 EPS_IMAGES27 = \
     6 	splitnodes1.eps \
     7 	splitnodes2.eps
     8 
     9 EPS_IMAGES = \
    10 	$(EPS_IMAGES18) \
    11 	$(EPS_IMAGES27)
    12 
    13 PNG_IMAGES = \
    14 	$(EPS_IMAGES:%.eps=gen-images/%.png)
    15 
    16 DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
    17 
    18 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    19 
    20 all: demos html
    21 
    22 $(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
    23 	-mkdir -p gen-images
    24 	$(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
    25 
    26 $(EPS_IMAGES27:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
    27 	-mkdir -p gen-images
    28 	$(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<
    29 
    30 html: Doxyfile-gen $(PNG_IMAGES)
    31 	-mkdir -p gen-dox
    32 	./scripts/titlegen.py
    33 	doxygen Doxyfile
    34 
    35 demos: $(DEMOS)
    36 
    37 Doxyfile-gen:
    38 	sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \
    39 	    -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \
    40 	< Doxyfile.in >Doxyfile
    41 
    42 clean:
    43 	-rm -rf html
    44 	-rm -f doxygen.log
    45 	-rm -f $(PNG_IMAGES)
    46 	-rm -rf gen-images
    47 	-rm -rf $(DEMOS)
    48 
    49 update-external-tags:
    50 	wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-$(LIBSTDCXX_VERSION)/libstdc++.tag && \
    51 	mv libstdc++.tag.tmp libstdc++.tag || \
    52 	rm libstdc++.tag.tmp
    53 	wget -O lemon.tag.tmp @make_lemon_doc_prefix@/lemon.tag && \
    54 	mv lemon.tag.tmp lemon.tag || \
    55 	rm lemon.tag.tmp
    56 
    57 
    58 $(DEMOS): demo/build/%: demo/%.cc
    59 	-mkdir -p demo/build
    60 	g++ -o $@ @lemon_cflags@ @lemon_libs@ \
    61 	-Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \
    62 	-Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \
    63 	-Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \
    64 	-Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \
    65 	-Wold-style-cast -Wno-unknown-pragmas \
    66 	-ggdb -O0 $<
    67 
    68 
    69 .PHONY: update-external-tags html demos Doxyfile-gen
    70