Code sync
[external/libdaemon.git] / doc / Makefile.am
1 # This file is part of libdaemon.
2 #
3 # Copyright 2003-2008 Lennart Poettering
4 #
5 # libdaemon is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation, either version 2.1 of the
8 # License, or (at your option) any later version.
9 #
10 # libdaemon is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with libdaemon. If not, see
17 # <http://www.gnu.org/licenses/>.
18
19 dist_html_DATA = README.html style.css
20 EXTRA_DIST = README.html.in
21
22 MAINTAINERCLEANFILES = README.html
23 CLEANFILES =
24
25 doxygen: doxygen.conf
26         doxygen doxygen.conf
27
28 maintainer-clean-local:
29         rm -rf reference
30
31 if USE_LYNX
32 dist_doc_DATA = README
33 MAINTAINERCLEANFILES += README
34 README: README.html
35         lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' | sed 's,file://localhost/.*/doc/reference/,reference/,' > $@
36
37 CLEANFILES += README
38 endif
39
40 tidy: README.html
41         tidy -e < README.html
42
43 .PHONY: doxygen tidy