COIN-OR::LEMON - Graph Library

source: lemon-tutorial/Makefile.in @ 40:e1725bb7e821

Last change on this file since 40:e1725bb7e821 was 40:e1725bb7e821, checked in by Peter Kovacs <kpeter@…>, 12 years ago

Port two images for SplitNodes? from SVN -r3524

File size: 1.8 KB
RevLine 
[35]1LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@
2
[0]3EPS_IMAGES18 =
4
[40]5EPS_IMAGES27 = \
6        splitnodes1.eps \
7        splitnodes2.eps
8
[0]9EPS_IMAGES = \
[40]10        $(EPS_IMAGES18) \
11        $(EPS_IMAGES27)
[0]12
13PNG_IMAGES = \
14        $(EPS_IMAGES:%.eps=gen-images/%.png)
15
[17]16DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
17
[0]18GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
19
[17]20all: demos html
[0]21
22$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
[17]23        -mkdir -p gen-images
[0]24        $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
25
[40]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
[17]30html: Doxyfile-gen $(PNG_IMAGES)
31        -mkdir -p gen-dox
32        ./scripts/titlegen.py
[0]33        doxygen Doxyfile
34
[17]35demos: $(DEMOS)
36
37Doxyfile-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
[0]42clean:
43        -rm -rf html
44        -rm -f doxygen.log
45        -rm -f $(PNG_IMAGES)
46        -rm -rf gen-images
[17]47        -rm -rf $(DEMOS)
[0]48
49update-external-tags:
[35]50        wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-$(LIBSTDCXX_VERSION)/libstdc++.tag && \
[0]51        mv libstdc++.tag.tmp libstdc++.tag || \
52        rm libstdc++.tag.tmp
[34]53        wget -O lemon.tag.tmp @make_lemon_doc_prefix@/lemon.tag && \
[0]54        mv lemon.tag.tmp lemon.tag || \
55        rm lemon.tag.tmp
56
[17]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
Note: See TracBrowser for help on using the repository browser.