source: trunk/doc/Makefile.am @ 2082

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

adding target installdirs-local, so make installdirs is complete.

Updated other install rules by making them safe against space in name
and removed test of existence before calling mkdir -p, instead check
that dirname is not empty before calling mkdir -p $dirname.

  • 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 2082 2009-10-19 20:55:31Z 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
108installdirs-local:
109  for dir in $(htmldir)/html $(dvidir) $(psdir) $(pdfdir); do \
110    test -z "$(DESTDIR)$$dir" || $(MKDIR_P) "$(DESTDIR)$$dir"; \
111  done
112
113# local install rules does not generate any documentation, in order to
114# follow the recommendation in GCS that `make install' should not
115# modify/create anything in builddir, proved `make all' has just been
116# done. This is for the common case that `make all' is issued as one
117# user and `make install' is issued as, for example, superuser.
118
119install-html-local:
120  @$(NORMAL_INSTALL)
121  @if test -d $(DX_HTML_OUTPUT); then \
122    echo "$(MKDIR_P) $(DESTDIR)$(htmldir)/html"; \
123    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
124    echo "$(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html"; \
125    $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
126  fi
127
128install-dvi-local:
129  @if test -f "$(PACKAGE).dvi"; then \
130    test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)";\
131    $(INSTALL_DATA) $(PACKAGE).dvi "$(DESTDIR)$(dvidir)/$(PACKAGE).dvi"; \
132    $(ECHO) "$(INSTALL_DATA) $(PACKAGE).dvi $(DESTDIR)$(dvidir)/$(PACKAGE).dvi";\
133  fi
134
135install-ps-local:
136  @if test -f "$(PACKAGE).ps"; then \
137    test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)";\
138    $(INSTALL_DATA) $(PACKAGE).ps "$(DESTDIR)$(psdir)/$(PACKAGE).ps"; \
139    $(ECHO) "$(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps";\
140  fi
141
142install-pdf-local:
143  @if test -f "$(PACKAGE).pdf"; then \
144    test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)";\
145    $(INSTALL_DATA) $(PACKAGE).pdf "$(DESTDIR)$(pdfdir)/$(PACKAGE).pdf"; \
146    $(ECHO) "$(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf";\
147  fi
148
149
150mostlyclean-local:
151  rm -f doxygen.error *~
152
153clean-local:
154  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
155  $(DX_LATEX_OUTPUT) stamp-doxygen
156
157FORCE:
Note: See TracBrowser for help on using the repository browser.