summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: 79f3826cd6414525208370fc31d514f47067cc1e (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
# $Id$

# This file is part of libnewmail.
#
# libnewmail is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# libnewmail is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libnewmail; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

noinst_DATA = README.html README reference
EXTRA_DIST = $(noinst_DATA) style.css README.html.in reference

MAINTAINERCLEANFILES = README README.html
CLEANFILES =

if USE_DOXYGEN
reference: doxygen.conf
	doxygen doxygen.conf
	touch reference

doxygen:
	touch doxygen.conf
	$(MAKE) reference

maintainer-clean-local:
	rm -rf reference
endif

if USE_LYNX
README: README.html
	lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' | sed 's,file://localhost/.*/doc/reference/,reference/,' > $@

CLEANFILES += README
endif

tidy: README.html
	tidy -e < README.html

if USE_DOXYGEN
.PHONY: doxygen tidy
else
.PHONY: tidy
endif