source: branches/0.9-stable/doc/Makefile.am @ 2841

Last change on this file since 2841 was 2841, checked in by Peter, 9 years ago

fixes #721. fix install-html-local rule and add a install-check rule just checking that html got installed to catch this problem within distcheck

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