source: trunk/doc/Makefile.am

Last change on this file was 4359, checked in by Peter, 4 weeks ago

update copyright years using svndigest 0.11 (in contrast to 0.10.x previously)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1## $Id: Makefile.am 4359 2023-08-23 01:28:46Z peter $
2
3# Copyright (C) 2003 Jari Häkkinen
4# Copyright (C) 2005 Peter Johansson
5# Copyright (C) 2006 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2007 Peter Johansson
7# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2009, 2010, 2011, 2012, 2020 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/html/index.html
46INSTALL_CHECK_TARGETS += installcheck-html
47endif
48
49EXTRA_DIST += doc/doxygen.config.in
50
51# config file needs to be updated when $(DOXYGEN_INPUT) is
52# changed. That variable is set in various Makefile.am, but instead we
53# depend on Makefile.in, since that dependency is easier to maintain.
54doc/doxygen.config: doc/doxygen.config.in $(srcdir)/Makefile.in
55  $(AM_V_GEN)echo "# $@ generated by make from doc/doxygen.config.in." \
56  > $@-t \
57  && $(edit) '$(srcdir)/doc/doxygen.config.in' >> $@-t \
58  && echo "INPUT = $(DOXYGEN_INPUT)" >> $@-t \
59  && mv $@-t $@
60
61doc/html/index.html: $(DOXYGEN_DEPS)
62  $(AM_V_GEN)$(DOXYGEN) doc/doxygen.config $(yat_dev_null)
63
64
65install-data-hook: install-html
66
67installdirs-local:
68  test -z "$(DESTDIR)$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)";
69
70# local install rules does not generate any documentation, in order to
71# follow the recommendation in GCS that `make install' should not
72# modify/create anything in builddir, proved `make all' has just been
73# done. This is for the common case that `make all' is issued as one
74# user and `make install' is issued as, for example, superuser.
75
76install-html-local:
77  @$(NORMAL_INSTALL)
78  @if test -d doc/html; then \
79    test -z "$(DESTDIR)$(htmldir)" || \
80    { $(MKDIR_P) "$(DESTDIR)$(htmldir)"; \
81      $(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir); \
82    } \
83  fi
84
85uninstall-local:
86  @$(NORMAL_UNINSTALL)
87  rm -rf $(DESTDIR)$(htmldir)
88
89# check that html has been installed (only activated when DX_ENABLE_HTML)
90## see ticket #721
91installcheck-html:
92  $(AM_V_at) test -r "$(DESTDIR)/$(htmldir)/index.html" \
93  || { echo "no documentation installed" 1>&2; exit 1; }
94
95MOSTLYCLEANFILES += doc/doxygen.config
96MOSTLYCLEANFILES += doc/doxygen.error
Note: See TracBrowser for help on using the repository browser.