source: trunk/doc/Makefile.am @ 2266

Last change on this file since 2266 was 2266, checked in by Peter, 12 years ago

use 'echo' rather than the variable ECHO decided by libtool. The command decided by libtool 2.2.8 does not work from Makefiles on Mac OSX

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2266 2010-06-05 23:14:58Z 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 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)/build_tool.doxygen \
27$(builddir)/first_page.doxygen \
28$(srcdir)/footer.html \
29$(srcdir)/namespaces.doxygen \
30$(srcdir)/concepts.doxygen \
31$(srcdir)/Statistics.doxygen
32
33EXTRA_DIST = $(DOXYGEN_FILES)
34
35@am__include@ @am__quote@./$(top_builddir)/yat/classifier/doxygen.mk@am__quote@
36@am__include@ @am__quote@./$(top_builddir)/yat/normalizer/doxygen.mk@am__quote@
37@am__include@ @am__quote@./$(top_builddir)/yat/random/doxygen.mk@am__quote@
38@am__include@ @am__quote@./$(top_builddir)/yat/regression/doxygen.mk@am__quote@
39@am__include@ @am__quote@./$(top_builddir)/yat/statistics/doxygen.mk@am__quote@
40@am__include@ @am__quote@./$(top_builddir)/yat/utility/doxygen.mk@am__quote@
41
42DOXYGEN_INPUT=$(classifier_doxygen_input) \
43$(yat_normalizer_doxygen_input) \
44$(yat_random_doxygen_input) \
45$(yat_regression_doxygen_input) \
46$(yat_statistics_doxygen_input) \
47$(yat_utility_doxygen_input) \
48$(DOXYGEN_FILES)
49
50DOXYGEN_DEPS = $(DOXYGEN_INPUT) doxygen.config \
51$(top_builddir)/yat/classifier/doxygen.mk \
52$(top_builddir)/yat/normalizer/doxygen.mk \
53$(top_builddir)/yat/random/doxygen.mk \
54$(top_builddir)/yat/regression/doxygen.mk \
55$(top_builddir)/yat/statistics/doxygen.mk \
56$(top_builddir)/yat/utility/doxygen.mk
57
58doc: html dvi ps pdf
59
60
61# these are supported by automake and *-local will add target to *
62if DX_ENABLE_DVI
63dvi-local: $(PACKAGE).dvi
64endif
65if DX_ENABLE_PS
66ps-local: $(PACKAGE).ps
67endif
68if DX_ENABLE_PDF
69pdf-local: $(PACKAGE).pdf
70endif
71if DX_ENABLE_HTML
72html-local: $(DX_HTML_OUTPUT)/index.html
73endif
74
75# this is not supported by automake - there is no target latex
76if DX_ENABLE_LATEX
77latex-local: $(DX_LATEX_OUTPUT)/refman.tex
78endif
79
80$(DX_HTML_OUTPUT)/index.html: $(DOXYGEN_DEPS)
81  (cat doxygen.config && echo "INPUT = $(DOXYGEN_INPUT)" && \
82  echo GENERATE_HTML = YES) | $(DOXYGEN) -;
83
84$(DX_LATEX_OUTPUT)/refman.tex: $(DOXYGEN_DEPS)
85  @(cat doxygen.config && echo "INPUT = $(DOXYGEN_INPUT)" && \
86  echo GENERATE_LATEX = YES) | $(DOXYGEN) -;
87
88$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
89  cd $(DX_LATEX_OUTPUT) && $(latex) refman.tex && $(latex) refman.tex
90  cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi
91
92$(PACKAGE).ps: $(PACKAGE).dvi
93  cd $(DX_LATEX_OUTPUT) && $(dvips) -q -o refman.ps refman.dvi;
94  cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps
95
96$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
97  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
98  cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf
99
100
101install-data-hook:
102  @$(NORMAL_INSTALL)
103  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
104
105uninstall-hook:
106  @$(NORMAL_UNINSTALL)
107  rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \
108  $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf
109
110installdirs-local:
111  for dir in $(htmldir)/html $(dvidir) $(psdir) $(pdfdir); do \
112    test -z "$(DESTDIR)$$dir" || $(MKDIR_P) "$(DESTDIR)$$dir"; \
113  done
114
115# local install rules does not generate any documentation, in order to
116# follow the recommendation in GCS that `make install' should not
117# modify/create anything in builddir, proved `make all' has just been
118# done. This is for the common case that `make all' is issued as one
119# user and `make install' is issued as, for example, superuser.
120
121install-html-local:
122  @$(NORMAL_INSTALL)
123  @if test -d $(DX_HTML_OUTPUT); then \
124    echo "$(MKDIR_P) $(DESTDIR)$(htmldir)/html"; \
125    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
126    echo "$(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html"; \
127    $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
128  fi
129
130install-dvi-local:
131  @if test -f "$(PACKAGE).dvi"; then \
132    test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)";\
133    $(INSTALL_DATA) $(PACKAGE).dvi "$(DESTDIR)$(dvidir)/$(PACKAGE).dvi"; \
134    echo "$(INSTALL_DATA) $(PACKAGE).dvi $(DESTDIR)$(dvidir)/$(PACKAGE).dvi";\
135  fi
136
137install-ps-local:
138  @if test -f "$(PACKAGE).ps"; then \
139    test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)";\
140    $(INSTALL_DATA) $(PACKAGE).ps "$(DESTDIR)$(psdir)/$(PACKAGE).ps"; \
141    echo "$(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps";\
142  fi
143
144install-pdf-local:
145  @if test -f "$(PACKAGE).pdf"; then \
146    test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)";\
147    $(INSTALL_DATA) $(PACKAGE).pdf "$(DESTDIR)$(pdfdir)/$(PACKAGE).pdf"; \
148    echo "$(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf";\
149  fi
150
151
152mostlyclean-local:
153  rm -f doxygen.error *~
154
155clean-local:
156  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
157  $(DX_LATEX_OUTPUT) stamp-doxygen
158
159FORCE:
Note: See TracBrowser for help on using the repository browser.