-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile.doxygen
More file actions
171 lines (129 loc) · 4.32 KB
/
Makefile.doxygen
File metadata and controls
171 lines (129 loc) · 4.32 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
### ==========================================================================
### $Id$
### FILE: Makefile.doxygen - make documentation
### bibo - another LEGO MindStorms RCX OS
### --------------------------------------------------------------------------
DISTFILES += Doxyfile Doxyfile-c Doxyfile-c++ Makefile.doxygen
#
# Setup the relationships between "host" targets and "docs" targets
#
#host:: docs
#
#host-install:: docs-install
#
#host-uninstall:: docs-uninstall
#
#host-clean:: docs-clean
#
#host-realclean:: docs-realclean
# API generation support using Doxygen
#
# when we get a new version of doxygen, run this target once
#
upgrade-doxygen:
doxygen -u Doxyfile-c
doxygen -u Doxyfile-c++
doxygen -u Doxyfile
#
# install/uninstall all API documentation
#
docs-build docs-install::
$(MAKE) $(MFLAGS) -C doc $@
docs-clean::
docs-realclean:: html-c-realclean html-c++-realclean html-kern-realclean
docs-install:: html-c-install html-c++-install html-kern-install
docs-uninstall::
rm -f -r $(DESTDIR)$(pkgdocdir)
#
# doc/html-c subdirectory: make C docs
#
html-c: Doxyfile-c-report
html-c-realclean::
rm -rf doc/html-c doc/rtf-c
rm -f -- Doxyfile-c.log Doxyfile-c.rpt .Doxyfile-c-doneflag *.out
brickos-html-c-dist.tar.gz: html-c
cd doc;tar --gzip -cf $@ html-c;mv $@ ..;cd -
html-c-dist: brickos-html-c-dist.tar.gz
html-c-install: html-c
cp -r doc/html-c ${pkghtmldir}
Doxyfile-c.log: Doxyfile-c
doxygen $? >$@ 2>&1
Doxyfile-c.rpt: Doxyfile-c.log
@grep Warn $? | sed -e 's/^.*brickos\///' | cut -f1 -d: | sort | \
uniq -c | sort -rn | tee $@
.Doxyfile-c-doneflag: Doxyfile-c.rpt
@for FIL in `cat $? | cut -c9-99`; do \
OUTFILE=`echo $$FIL | sed -e 's/[\/\.]/-/g'`.out; \
echo "# FILE: $$OUTFILE" >$$OUTFILE; \
grep "$$FIL" $? >>$$OUTFILE; \
grep "$$FIL" Doxyfile-c.log | grep Warn >>$$OUTFILE; \
done
@touch $@
Doxyfile-c-report: .Doxyfile-c-doneflag
-ls -ltr *.out 2>/dev/null
#
# doc/html-c++ subdirectory: make C++ docs
#
html-c++: Doxyfile-c++-report
html-c++-realclean::
rm -rf doc/html-c++ doc/rtf-c++
rm -f -- Doxyfile-c++.log Doxyfile-c++.rpt .Doxyfile-c++-doneflag *.out
brickos-html-c++-dist.tar.gz: html-c++
cd doc;tar --gzip -cf $@ html-c++;mv $@ ..;cd -
html-c++-dist: brickos-html-c++-dist.tar.gz
html-c++-install: html-c++
cp -r doc/html-c++ ${pkghtmldir}
Doxyfile-c++.log:
doxygen Doxyfile-c++ >$@ 2>&1
Doxyfile-c++.rpt: Doxyfile-c++.log
@grep Warn $? | sed -e 's/^.*brickos\///' | cut -f1 -d: | sort | \
uniq -c | sort -rn | tee $@
.Doxyfile-c++-doneflag: Doxyfile-c++.rpt
@for FIL in `cat Doxyfile-c++.rpt | cut -c9-99`; do \
OUTFILE=`echo $$FIL | sed -e 's/[\/\.]/-/g'`.out; \
echo "# FILE: $$OUTFILE" >$$OUTFILE; \
grep "$$FIL" Doxyfile-c++.rpt >>$$OUTFILE; \
grep "$$FIL" Doxyfile-c++.log | grep Warn >>$$OUTFILE; \
done
@touch $@
Doxyfile-c++-report: .Doxyfile-c++-doneflag
-ls -ltr *.out 2>/dev/null
#
# doc/html-kern subdirectory: make kernel developer docs
#
html-kern: Doxyfile-kern-report
html-kern-realclean::
rm -rf doc/html-kern doc/rtf-kern
rm -f -- Doxyfile-kern.log Doxyfile-kern.rpt .Doxyfile-kern-doneflag *.out
brickos-html-kern-dist.tar.gz: html-kern
cd doc;tar --gzip -cf $@ html-kern;mv $@ ..;cd -
html-kern-dist: brickos-html-kern-dist.tar.gz
html-kern-install: html-kern
cp -r doc/html-kern ${pkghtmldir}
Doxyfile-kern.log:
doxygen Doxyfile >$@ 2>&1
Doxyfile-kern.rpt: Doxyfile-kern.log
@grep Warn $? | sed -e 's/^.*brickos\///' | cut -f1 -d: | sort | \
uniq -c | sort -rn | tee $@
.Doxyfile-kern-doneflag: Doxyfile-kern.rpt
@for FIL in `cat Doxyfile-kern.rpt | cut -c9-99`; do \
OUTFILE=`echo $$FIL | sed -e 's/[\/\.]/-/g'`.out; \
echo "# FILE: $$OUTFILE" >$$OUTFILE; \
grep "$$FIL" Doxyfile-kern.rpt >>$$OUTFILE; \
grep "$$FIL" Doxyfile-kern.log | grep Warn >>$$OUTFILE; \
done
@touch $@
Doxyfile-kern-report: .Doxyfile-kern-doneflag
-ls -ltr *.out 2>/dev/null
#
# make all API documentation
#
api-docs-build: html-c html-c++ html-kern
docs: docs-build api-docs-build
#
# make distribution files for all API documentation
#
api-dist: html-c-dist html-c++-dist html-kern-dist
### --------------------------------------------------------------------------
### End of FILE: Makefile.doxygen
### ==========================================================================