source: trunk/doc/Makefile.am @ 957

Last change on this file since 957 was 957, checked in by Peter, 14 years ago

Generation of documentation is disabled if software is missing. For
example if doxygen is missing doxygen is not issued, but for example
Statistics.pdf is generated and so on and so forth.

Also, I added variables dvi-local, pdf-local, and html-local. This
means that one now can issue ,e.g., 'make pdf' and hopefully get what one was
hoping for.

I divided clean-local into clean-local and mostlyclean-local. The
latter is included in a 'make mostlyclean' call and both are included
in a 'make clean' call.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 957 2007-10-09 20:07:24Z peter $
4
5# Copyright (C) 2003 Jari Häkkinen
6# Copyright (C) 2005 Peter Johansson
7# Copyright (C) 2006 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2007 Peter Johansson
9#
10# This file is part of the yat library, http://trac.thep.lu.se/trac/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 2 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 this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25# 02111-1307, USA.
26
27doc: doxygen.config doxygen-local Statistics-local
28
29dvi-local: Statistics.dvi
30
31pdf-local: Statistics.pdf
32
33html-local: doxygen.config doxygen-local html/Statistics/Statistics.html
34
35mostlyclean-local:
36  rm -rf *.toc *.log *.dvi *.aux *~
37
38clean-local:
39  rm -rf doxygen.config html latex Statistics.pdf
40
41doxygen-local:
42  @if $(HAVE_DOXYGEN); then \
43  doxygen doxygen.config; \
44  fi
45
46doxygen.config:
47  @sed -e 's/PROJECT_NUMBER.*= /&$(VERSION)/g' doxygen.config.in > doxygen.config
48
49
50html/Statistics/Statistics.html: Statistics.tex
51  @$(install_sh) -d html/Statistics
52  @if $(HAVE_LATEX2HTML); then \
53  latex2html -t "Weighted Statistics used in yat." \
54  --dir html/Statistics Statistics.tex;\
55  fi
56
57Statistics-local: html/Statistics/Statistics.html \
58  html/Statistics/Statistics.pdf
59
60Statistics.dvi: Statistics.tex
61  @if $(HAVE_LATEX); then \
62  @latex Statistics.tex; \
63  @latex Statistics.tex; \
64  fi
65
66Statistics.pdf: Statistics.dvi
67  @if $(HAVE_DVIPDFM); then \
68  dvipdfm Statistics.dvi; \
69  fi
70
71html/Statistics/Statistics.pdf: $(pdf)
72  @if test -f Statistics.pdf; then \
73    $(install_sh) -d html/Statistics; \
74    cp Statistics.pdf html/Statistics/.; \
75  fi
Note: See TracBrowser for help on using the repository browser.