source: trunk/doc/Makefile.am @ 2045

Last change on this file since 2045 was 2045, checked in by Peter, 13 years ago

avoid declaring *-am targets as that namespace belong to Automake

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2045 2009-09-01 20:32:11Z 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#
9# This file is part of the yat library, http://dev.thep.lu.se/yat
10#
11# The yat library is free software; you can redistribute it and/or
12# modify it under the terms of the GNU General Public License as
13# published by the Free Software Foundation; either version 3 of the
14# License, or (at your option) any later version.
15#
16# The yat library is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with yat. If not, see <http://www.gnu.org/licenses/>.
23
24
25DOXYGEN_FILES = $(srcdir)/build_tool.doxygen \
26$(builddir)/first_page.doxygen \
27$(srcdir)/namespaces.doxygen \
28$(srcdir)/concepts.doxygen \
29$(srcdir)/Statistics.doxygen
30
31EXTRA_DIST = $(DOXYGEN_FILES)
32
33@am__include@ @am__quote@./$(top_builddir)/yat/classifier/doxygen.mk@am__quote@
34@am__include@ @am__quote@./$(top_builddir)/yat/normalizer/doxygen.mk@am__quote@
35@am__include@ @am__quote@./$(top_builddir)/yat/random/doxygen.mk@am__quote@
36@am__include@ @am__quote@./$(top_builddir)/yat/regression/doxygen.mk@am__quote@
37@am__include@ @am__quote@./$(top_builddir)/yat/statistics/doxygen.mk@am__quote@
38@am__include@ @am__quote@./$(top_builddir)/yat/utility/doxygen.mk@am__quote@
39
40DOXYGEN_INPUT=$(classifier_doxygen_input) \
41$(normalizer_doxygen_input) \
42$(random_doxygen_input) \
43$(regression_doxygen_input) \
44$(statistics_doxygen_input) \
45$(utility_doxygen_input) \
46$(DOXYGEN_FILES)
47
48DOXYGEN_DEPS = $(DOXYGEN_INPUT) doxygen.config \
49$(top_builddir)/yat/classifier/doxygen.mk \
50$(top_builddir)/yat/normalizer/doxygen.mk \
51$(top_builddir)/yat/random/doxygen.mk \
52$(top_builddir)/yat/regression/doxygen.mk \
53$(top_builddir)/yat/statistics/doxygen.mk \
54$(top_builddir)/yat/utility/doxygen.mk
55
56doc: html dvi ps pdf
57
58
59# these are supported by automake and *-local will add target to *
60if DX_ENABLE_DVI
61dvi-local: $(PACKAGE).dvi
62endif
63if DX_ENABLE_PS
64ps-local: $(PACKAGE).ps
65endif
66if DX_ENABLE_PDF
67pdf-local: $(PACKAGE).pdf
68endif
69if DX_ENABLE_HTML
70html-local: $(DX_HTML_OUTPUT)/index.html
71endif
72
73# this is not supported by automake - there is no target latex
74if DX_ENABLE_LATEX
75latex-local: $(DX_LATEX_OUTPUT)/refman.tex
76endif
77
78$(DX_HTML_OUTPUT)/index.html: $(DOXYGEN_DEPS)
79  @(cat doxygen.config && $(ECHO) "INPUT = $(DOXYGEN_INPUT)" && \
80  $(ECHO) GENERATE_HTML = YES) | $(DOXYGEN) -;
81
82$(DX_LATEX_OUTPUT)/refman.tex: $(DOXYGEN_DEPS)
83  @(cat doxygen.config && $(ECHO) "INPUT = $(DOXYGEN_INPUT)" && \
84  $(ECHO) GENERATE_LATEX = YES) | $(DOXYGEN) -;
85
86$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
87  cd $(DX_LATEX_OUTPUT) && $(latex) refman.tex && $(latex) refman.tex
88  cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi
89
90$(PACKAGE).ps: $(PACKAGE).dvi
91  cd $(DX_LATEX_OUTPUT) && $(dvips) -q -o refman.ps refman.dvi;
92  cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps
93
94$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
95  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
96  cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf
97
98
99install-data-hook:
100  @$(NORMAL_INSTALL)
101  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
102
103uninstall-hook:
104  @$(NORMAL_UNINSTALL)
105  rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \
106  $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf
107
108install-html-local:
109  @if test -d $(DX_HTML_OUTPUT); then \
110  test -d $(DESTDIR)$(htmldir)/html || \
111    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
112  $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
113  fi
114
115install-dvi-local:
116  @if test -f "$(PACKAGE).dvi"; then \
117  test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\
118  $(INSTALL_DATA) $(PACKAGE).dvi \
119   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
120  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \
121   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
122  fi
123
124install-ps-local:
125  @if test -f "$(PACKAGE).ps"; then \
126  test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\
127  $(INSTALL_DATA) $(PACKAGE).ps \
128   $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
129  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
130  fi
131
132install-pdf-local:
133  @if test -f "$(PACKAGE).pdf"; then \
134  test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\
135  $(INSTALL_DATA) $(PACKAGE).pdf \
136   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
137  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \
138   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
139  fi
140
141
142mostlyclean-local:
143  rm -f doxygen.error *~
144
145clean-local:
146  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
147  $(DX_LATEX_OUTPUT) stamp-doxygen
148
149FORCE:
Note: See TracBrowser for help on using the repository browser.