Last change
on this file since 30:7d70e9735686 was
17:0b3b26cd1cea,
checked in by Alpar Juttner <alpar@…>, 16 years ago
|
Better build system
- configure script added
- demo/*.cc are now compiled (the executables are in demo/build)
- version number appears in the doc and automatically updates
- the cross reference to the lemon doc can be relocated (e.g. to a local
copy of the doc)
- some repo reorganization has taken place
- better .hgignore
|
File size:
1.5 KB
|
Line | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.