source: trunk/doc/Makefile.am @ 2932

Last change on this file since 2932 was 2932, checked in by Peter, 11 years ago

remove misleading comment as these files are no longer direct input to Automake

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
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
24DOXYGEN_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
31EXTRA_DIST += $(DOXYGEN_FILES)
32
33DOXYGEN_INPUT += $(DOXYGEN_FILES)
34DOXYGEN_INPUT += $(nobase_include_HEADERS)
35DOXYGEN_INPUT += $(nobase_nodist_include_HEADERS)
36DOXYGEN_INPUT += $(builddir)/doc/first_page.doxygen
37
38DOXYGEN_DEPS = $(DOXYGEN_INPUT) doc/doxygen.config
39
40doc: html
41
42if DX_ENABLE_HTML
43html-local: doc/$(DX_HTML_OUTPUT)/index.html
44INSTALL_CHECK_TARGETS += installcheck-html
45endif
46
47doc/$(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
53install-data-hook: install-html
54
55installdirs-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
64install-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
73uninstall-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
79installcheck-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
85MOSTLYCLEANFILES += doc/doxygen.error
Note: See TracBrowser for help on using the repository browser.