source: trunk/doc/Makefile.am @ 2739

Last change on this file since 2739 was 2739, checked in by Peter, 10 years ago

refs #703 using a non-recursive Makefile. Old Makefile.am are kept but
rather than being source for sub-Makefiles they are included into
topdir Makefile.am. This implies Make rules must be modified to work
from topdir. A temporary code snippet will remove old Makefiles and
Makefile.ins at configure time. This code will be removed in a week or
so and is mainly there for autobuilds and prepare for future
sub-Makefiles (that will have a all: rule in sub-directories.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2739 2012-06-07 22:22:47Z 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 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$(builddir)/doc/first_page.doxygen \
28$(srcdir)/doc/deprecated.doxygen \
29$(srcdir)/doc/footer.html \
30$(srcdir)/doc/namespaces.doxygen \
31$(srcdir)/doc/concepts.doxygen \
32$(srcdir)/doc/Statistics.doxygen
33
34EXTRA_DIST += $(DOXYGEN_FILES)
35
36DOXYGEN_INPUT += $(DOXYGEN_FILES)
37DOXYGEN_INPUT += $(nobase_include_HEADERS)
38DOXYGEN_INPUT += $(nobase_nodist_include_HEADERS)
39
40DOXYGEN_DEPS = $(DOXYGEN_INPUT) doc/doxygen.config
41
42# these are supported by automake and *-local will add target to *
43if DX_ENABLE_HTML
44html-local: doc/$(DX_HTML_OUTPUT)/index.html
45endif
46
47dx_dev_null = $(dx_dev_null_$(V))
48dx_dev_null_ = $(dx_dev_null_$(AM_DEFAULT_VERBOSITY))
49dx_dev_null_0 = > /dev/null
50
51doc/$(DX_HTML_OUTPUT)/index.html: $(DOXYGEN_DEPS)
52  $(AM_V_GEN)
53  $(AM_V_at){ cat doc/doxygen.config && echo "INPUT = $(DOXYGEN_INPUT)" && \
54  echo GENERATE_HTML = YES; } | $(DOXYGEN) - $(dx_dev_null);
55
56install-data-hook: install-html
57
58installdirs-local:
59  test -z "$(DESTDIR)$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)";
60
61# local install rules does not generate any documentation, in order to
62# follow the recommendation in GCS that `make install' should not
63# modify/create anything in builddir, proved `make all' has just been
64# done. This is for the common case that `make all' is issued as one
65# user and `make install' is issued as, for example, superuser.
66
67install-html-local:
68  @$(NORMAL_INSTALL)
69  @if test -d $(DX_HTML_OUTPUT); then \
70    test -z "$(DESTDIR)$(htmldir)" || \
71    { $(MKDIR_P) "$(DESTDIR)$(htmldir)"; \
72      $(INSTALL_DATA) doc/$(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir); \
73    } \
74  fi
75
76uninstall-local:
77  @$(NORMAL_UNINSTALL)
78  rm -rf $(DESTDIR)$(htmldir)
79
80MOSTLYCLEANFILES += doc/doxygen.error
Note: See TracBrowser for help on using the repository browser.