1 | ## $Id: Makefile.am 2932 2012-12-27 01:00:30Z peter $ |
---|
2 | |
---|
3 | # Copyright (C) 2003 Jari Häkkinen |
---|
4 | # Copyright (C) 2005 Peter Johansson |
---|
5 | # Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson |
---|
6 | # Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson |
---|
7 | # |
---|
8 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
9 | # |
---|
10 | # The yat library is free software; you can redistribute it and/or |
---|
11 | # modify it under the terms of the GNU General Public License as |
---|
12 | # published by the Free Software Foundation; either version 3 of the |
---|
13 | # License, or (at your option) any later version. |
---|
14 | # |
---|
15 | # The yat library is distributed in the hope that it will be useful, |
---|
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | # General Public License for more details. |
---|
19 | # |
---|
20 | # You should have received a copy of the GNU General Public License |
---|
21 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
22 | |
---|
23 | |
---|
24 | DOXYGEN_FILES = $(srcdir)/doc/build_tool.doxygen \ |
---|
25 | $(srcdir)/doc/deprecated.doxygen \ |
---|
26 | $(srcdir)/doc/footer.html \ |
---|
27 | $(srcdir)/doc/namespaces.doxygen \ |
---|
28 | $(srcdir)/doc/concepts.doxygen \ |
---|
29 | $(srcdir)/doc/Statistics.doxygen |
---|
30 | |
---|
31 | EXTRA_DIST += $(DOXYGEN_FILES) |
---|
32 | |
---|
33 | DOXYGEN_INPUT += $(DOXYGEN_FILES) |
---|
34 | DOXYGEN_INPUT += $(nobase_include_HEADERS) |
---|
35 | DOXYGEN_INPUT += $(nobase_nodist_include_HEADERS) |
---|
36 | DOXYGEN_INPUT += $(builddir)/doc/first_page.doxygen |
---|
37 | |
---|
38 | DOXYGEN_DEPS = $(DOXYGEN_INPUT) doc/doxygen.config |
---|
39 | |
---|
40 | doc: html |
---|
41 | |
---|
42 | if DX_ENABLE_HTML |
---|
43 | html-local: doc/$(DX_HTML_OUTPUT)/index.html |
---|
44 | INSTALL_CHECK_TARGETS += installcheck-html |
---|
45 | endif |
---|
46 | |
---|
47 | doc/$(DX_HTML_OUTPUT)/index.html: $(DOXYGEN_DEPS) |
---|
48 | $(AM_V_GEN) |
---|
49 | $(AM_V_at){ cat doc/doxygen.config && \ |
---|
50 | echo "INPUT = $(DOXYGEN_INPUT)" && \ |
---|
51 | echo GENERATE_HTML = YES; } | $(DOXYGEN) - $(yat_dev_null); |
---|
52 | |
---|
53 | install-data-hook: install-html |
---|
54 | |
---|
55 | installdirs-local: |
---|
56 | test -z "$(DESTDIR)$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"; |
---|
57 | |
---|
58 | # local install rules does not generate any documentation, in order to |
---|
59 | # follow the recommendation in GCS that `make install' should not |
---|
60 | # modify/create anything in builddir, proved `make all' has just been |
---|
61 | # done. This is for the common case that `make all' is issued as one |
---|
62 | # user and `make install' is issued as, for example, superuser. |
---|
63 | |
---|
64 | install-html-local: |
---|
65 | @$(NORMAL_INSTALL) |
---|
66 | @if test -d doc/$(DX_HTML_OUTPUT); then \ |
---|
67 | test -z "$(DESTDIR)$(htmldir)" || \ |
---|
68 | { $(MKDIR_P) "$(DESTDIR)$(htmldir)"; \ |
---|
69 | $(INSTALL_DATA) doc/$(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir); \ |
---|
70 | } \ |
---|
71 | fi |
---|
72 | |
---|
73 | uninstall-local: |
---|
74 | @$(NORMAL_UNINSTALL) |
---|
75 | rm -rf $(DESTDIR)$(htmldir) |
---|
76 | |
---|
77 | # check that html has been installed (only activated when DX_ENABLE_HTML) |
---|
78 | ## see ticket #721 |
---|
79 | installcheck-html: |
---|
80 | $(AM_V_at) test -r "$(DESTDIR)/$(htmldir)/index.html" \ |
---|
81 | || { echo "no documentation installed" 1>&2; exit 1; } |
---|
82 | $(AM_V_at)grep "yat.*$(VERSION)" "$(DESTDIR)/$(htmldir)/index.html" \ |
---|
83 | || { echo $(DESTDIR)/$(htmldir)/index.html not updated 1>&2; exit 1; } |
---|
84 | |
---|
85 | MOSTLYCLEANFILES += doc/doxygen.error |
---|