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@…>, 11 years ago

Port two images for SplitNodes? from SVN -r3524

File size: 1.8 KB
Line 
1LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@
2
3EPS_IMAGES18 =
4
5EPS_IMAGES27 = \
6        splitnodes1.eps \
7        splitnodes2.eps
8
9EPS_IMAGES = \
10        $(EPS_IMAGES18) \
11        $(EPS_IMAGES27)
12
13PNG_IMAGES = \
14        $(EPS_IMAGES:%.eps=gen-images/%.png)
15
16DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
17
18GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
19
20all: 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
30html: Doxyfile-gen $(PNG_IMAGES)
31        -mkdir -p gen-dox
32        ./scripts/titlegen.py
33        doxygen Doxyfile
34
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
42clean:
43        -rm -rf html
44        -rm -f doxygen.log
45        -rm -f $(PNG_IMAGES)
46        -rm -rf gen-images
47        -rm -rf $(DEMOS)
48
49update-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
Note: See TracBrowser for help on using the repository browser.