Makefile.in
author Alpar Juttner <alpar@cs.elte.hu>
Mon, 23 Mar 2009 09:29:58 +0000
changeset 21 e4bd4ee05e3f
parent 10 55e2f7712e87
child 34 eda742a0b1b4
permissions -rw-r--r--
Basic graph operation + intro to the default maps
     1 EPS_IMAGES18 =
     2 
     3 EPS_IMAGES = \
     4 	$(EPS_IMAGES18)
     5 
     6 PNG_IMAGES = \
     7 	$(EPS_IMAGES:%.eps=gen-images/%.png)
     8 
     9 DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
    10 
    11 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    12 
    13 all: demos html
    14 
    15 $(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
    16 	-mkdir -p gen-images
    17 	$(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
    18 
    19 html: Doxyfile-gen $(PNG_IMAGES)
    20 	-mkdir -p gen-dox
    21 	./scripts/titlegen.py
    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
    30 
    31 clean:
    32 	-rm -rf html
    33 	-rm -f doxygen.log
    34 	-rm -f $(PNG_IMAGES)
    35 	-rm -rf gen-images
    36 	-rm -rf $(DEMOS)
    37 
    38 update-external-tags:
    39 	wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \
    40 	mv libstdc++.tag.tmp libstdc++.tag || \
    41 	rm libstdc++.tag.tmp
    42 	wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \
    43 	mv lemon.tag.tmp lemon.tag || \
    44 	rm lemon.tag.tmp
    45 
    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