1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 1256 2008-04-04 17:27:36Z 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 2008 Peter Johansson |
---|
9 | # |
---|
10 | # This file is part of the yat library, http://trac.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 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 | |
---|
27 | if HAVE_DOXYGEN |
---|
28 | |
---|
29 | doc: html dvi ps pdf |
---|
30 | |
---|
31 | # these are supported by automake and *-local will add target to * |
---|
32 | dvi-local: $(PACKAGE).dvi |
---|
33 | ps-local: $(PACKAGE).ps |
---|
34 | pdf-local: $(PACKAGE).pdf |
---|
35 | |
---|
36 | html-local: doxygen.config |
---|
37 | @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | doxygen -; |
---|
38 | |
---|
39 | # this is not supported by automake - there is no target latex |
---|
40 | latex-local: doxygen.config |
---|
41 | @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | doxygen -; |
---|
42 | |
---|
43 | $(PACKAGE).dvi: latex-local |
---|
44 | cd latex && latex refman.tex && latex refman.tex |
---|
45 | cp latex/refman.dvi $(PACKAGE).dvi |
---|
46 | |
---|
47 | $(PACKAGE).ps: $(PACKAGE).dvi |
---|
48 | dvips latex/refman.dvi -o $(PACKAGE).ps |
---|
49 | |
---|
50 | |
---|
51 | $(PACKAGE).pdf: latex-local |
---|
52 | cd latex && $(MAKE) pdf; |
---|
53 | cp latex/refman.pdf $(PACKAGE).pdf |
---|
54 | |
---|
55 | endif |
---|
56 | |
---|
57 | install-data-hook: |
---|
58 | @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html |
---|
59 | |
---|
60 | install-html-am: |
---|
61 | if test -d "html"; then \ |
---|
62 | test -d $(htmldir)/html || $(MKDIR_P) $(htmldir)/html;\ |
---|
63 | $(INSTALL_DATA) html/* $(htmldir)/html; \ |
---|
64 | fi |
---|
65 | |
---|
66 | install-dvi-am: |
---|
67 | @if test -f "$(PACKAGE).dvi"; then \ |
---|
68 | test -d $(dvidir) || $(MKDIR_P) $(dvidir);\ |
---|
69 | $(INSTALL_DATA) $(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi; \ |
---|
70 | $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi; \ |
---|
71 | fi |
---|
72 | |
---|
73 | install-ps-am: |
---|
74 | @if test -f "$(PACKAGE).ps"; then \ |
---|
75 | test -d $(psdir) || $(MKDIR_P) $(psdir);\ |
---|
76 | $(INSTALL_DATA) $(PACKAGE).ps $(psdir)/$(PACKAGE).ps; \ |
---|
77 | $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(psdir)/$(PACKAGE).ps; \ |
---|
78 | fi |
---|
79 | |
---|
80 | install-pdf-am: |
---|
81 | @if test -f "$(PACKAGE).pdf"; then \ |
---|
82 | test -d $(pdfdir) || $(MKDIR_P) $(pdfdir);\ |
---|
83 | $(INSTALL_DATA) $(PACKAGE).pdf $(pdfdir)/$(PACKAGE).pdf; \ |
---|
84 | $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf $(pdfdir)/$(PACKAGE).pdf; \ |
---|
85 | fi |
---|
86 | |
---|
87 | |
---|
88 | mostlyclean-local: |
---|
89 | rm -f $(PACKAGE).dvi *~ |
---|
90 | |
---|
91 | clean-local: |
---|
92 | rm -rf doxygen.config html latex $(PACKAGE).dvi \ |
---|
93 | $(PACKAGE).ps $(PACKAGE).pdf |
---|
94 | |
---|
95 | FORCE: |
---|