liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
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
# -*- 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 = \
   core.txt \
   core.html \
   route.txt \
   route.html \
   index.txt \
   index.html \
   libnl.css \
   stylesheets \
   images \
   api
 
dist-hook:
   rm -f $(distdir)/aclocal.m4
   rm -f $(distdir)/configure
   rm -f $(distdir)/configure.in
   rm -rf $(distdir)/m4
   rm -f $(distdir)/README
   rm -f $(distdir)/missing
   rm -f $(distdir)/Doxyfile.in
   rm -f $(distdir)/Makefile.am
   rm -f $(distdir)/Makefile.in
 
link_doc:
if LINK_DOC
   ./gen-tags.sh > libnl.dict
else
   @echo "Warning: Linking to API reference is disabled, check configure output"
endif
   
 
%.html: %.txt link_doc
   ./resolve-asciidoc-refs.py $< > asciidoc.tmp
   asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
if LINK_DOC
   ./doxygen-link.py libnl.dict $@ > asciidoc.tmp
   mv asciidoc.tmp $@
endif
 
asciidoc: core.html route.html index.html
 
api_ref:
   doxygen Doxyfile;
 
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;