blob: 142dc31bcf0c4a19076b59dd17b67ca4fecc26c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# -*- Makefile -*-
.PHONY: gendoc api_ref asciidoc
ASCIIDOCOPTS=-a pygments -a language=c -a icons \
-a toc2 \
-a numbered \
-a imagesdir="./images/" \
-a iconsdir="./images/icons" \
-a stylesdir="${abs_srcdir}/stylesheets/"
EXTRA_DIST = \
Doxyfile \
DoxygenLayout.xml \
core.txt \
route.txt \
index.txt \
libnl.css \
README \
doxygen-link.py \
gen-tags.sh \
resolve-asciidoc-refs.py \
tags2dict.sh \
stylesheets/asciidoc.css \
stylesheets/asciidoc-manpage.css \
stylesheets/docbook-xsl.css \
stylesheets/flask.css \
stylesheets/flask-manpage.css \
stylesheets/pygments.css \
stylesheets/slidy.css \
stylesheets/toc2.css \
stylesheets/volnitsky.css \
stylesheets/volnitsky-manpage.css \
stylesheets/xhtml11-quirks.css \
images/asciidoc__1.png \
images/asciidoc__2.png \
images/asciidoc__3.png \
images/asciidoc__4.png \
images/asciidoc__5.png \
images/asciidoc__6.png \
images/asciidoc__7.png \
images/attribute_hdr.png \
images/classful_qdisc.png \
images/classless_qdisc_nbands.png \
images/classless_qdisc.png \
images/ifinfomsg.png \
images/library_overview.png \
images/nlmsgerr.png \
images/nlmsghdr.png \
images/qdisc_default.png \
images/qdisc_mq.png \
images/tc_obj.png \
images/tc_overview.png \
images/icons/caution.png \
images/icons/example.png \
images/icons/home.png \
images/icons/important.png \
images/icons/next.png \
images/icons/note.png \
images/icons/prev.png \
images/icons/README \
images/icons/tip.png \
images/icons/up.png \
images/icons/warning.png \
images/icons/callouts/1.png \
images/icons/callouts/2.png \
images/icons/callouts/3.png \
images/icons/callouts/4.png \
images/icons/callouts/5.png \
images/icons/callouts/6.png \
images/icons/callouts/7.png \
images/icons/callouts/8.png \
images/icons/callouts/9.png \
images/icons/callouts/10.png \
images/icons/callouts/11.png \
images/icons/callouts/12.png \
images/icons/callouts/13.png \
images/icons/callouts/14.png \
images/icons/callouts/15.png
%.html: %.txt
if LINK_DOC
./resolve-asciidoc-refs.py $< > asciidoc.tmp
asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
./doxygen-link.py libnl.dict $@ > asciidoc.tmp
mv asciidoc.tmp $@
else
asciidoc $(ASCIIDOCOPTS) -o $@ $<
endif
asciidoc: core.html route.html index.html
link_doc:
if LINK_DOC
./gen-tags.sh | ./tags2dict.sh > libnl.dict
else
@echo "Warning: Linking to API reference is disabled, check configure output"
endif
api_ref:
doxygen Doxyfile;
$(MAKE) link_doc
gendoc:
if GENERATE_DOC
if HAVE_DOXYGEN
$(MAKE) api_ref
else
@echo "Warning: Building of API reference (doxygen) is disabled, check autoconf logs"
endif
if HAVE_ASCIIDOC
$(MAKE) asciidoc
else
@echo "Warning: Building of asciidoc files is disabled, check autoconf logs"
endif
else
@echo "Warning: Building of documentation disabled by user or autoconf"
endif
clean-local:
rm -f api/* libnl.dict *.html;
|