source: trunk/doc/Makefile.am @ 1460

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

just to conform to gnu coding standards

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1460 2008-08-31 17:36:13Z peter $
4
5# Copyright (C) 2003 Jari Häkkinen
6# Copyright (C) 2005 Peter Johansson
7# Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2008 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 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
27EXTRA_DIST = build_tool.doxygen concepts.doxygen \
28  namespaces.doxygen Statistics.doxygen
29
30
31doc: html dvi ps pdf
32
33stamp-doxygen: doxygen.config Makefile first_page.doxygen
34  @$(MAKE) $(AM_MAKEFLAGS) update-stamp-doxygen
35
36update-stamp-doxygen: FORCE
37  @input=`$(SED) -n 's/^[ \t]*INPUT[ \t]*=[ \t]*//p' doxygen.config`;\
38  pattern=`$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' \
39  doxygen.config`;\
40  if (test -z "$$pattern"); then \
41    pattern="*.c *.cc *.cxx *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp *.h++ *.idl";\
42  fi;\
43  for i in $$input; do \
44    if (test -d $$i); then \
45      for p in $$pattern; do \
46        input2="$$input2 `find $$i -name \"$$p\"|xargs`";\
47      done; \
48    else \
49      input2="$$input2 $$i"; \
50    fi; \
51  done; \
52  for i in $$input2; do \
53    if (test $$i -nt stamp-doxygen); then \
54      echo timestamp > stamp-doxygen; \
55    fi; \
56  done;
57
58if HAVE_DOXYGEN
59
60
61# these are supported by automake and *-local will add target to *
62dvi-local: update-stamp-doxygen $(PACKAGE).dvi
63ps-local: update-stamp-doxygen $(PACKAGE).ps
64pdf-local: update-stamp-doxygen $(PACKAGE).pdf
65html-local: update-stamp-doxygen $(DX_HTML_OUTPUT)/index.html
66
67# this is not supported by automake - there is no target latex
68latex-local: $(DX_LATEX_OUTPUT)/refman.tex
69
70$(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config stamp-doxygen
71  @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | $(DOXYGEN) -;
72
73$(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config stamp-doxygen
74  @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | $(DOXYGEN) -;
75
76$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
77  cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex
78  cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi
79
80$(PACKAGE).ps: $(PACKAGE).dvi
81  cd $(DX_LATEX_OUTPUT) && dvips -q -o refman.ps refman.dvi;
82  cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps
83
84$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
85  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
86  cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf
87
88endif
89
90install-data-hook:
91  @$(NORMAL_INSTALL)
92  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
93
94uninstall-hook:
95  @$(NORMAL_UNINSTALL)
96  rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \
97  $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf
98
99install-html-am:
100  @if test -d $(DX_HTML_OUTPUT); then \
101  test -d $(DESTDIR)$(htmldir)/html || \
102    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
103  $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
104  fi
105
106install-dvi-am:
107  @if test -f "$(PACKAGE).dvi"; then \
108  test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\
109  $(INSTALL_DATA) $(PACKAGE).dvi \
110   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
111  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \
112   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
113  fi
114
115install-ps-am:
116  @if test -f "$(PACKAGE).ps"; then \
117  test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\
118  $(INSTALL_DATA) $(PACKAGE).ps \
119   $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
120  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
121  fi
122
123install-pdf-am:
124  @if test -f "$(PACKAGE).pdf"; then \
125  test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\
126  $(INSTALL_DATA) $(PACKAGE).pdf \
127   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
128  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \
129   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
130  fi
131
132
133mostlyclean-local:
134  rm -f doxygen.error *~
135
136clean-local:
137  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
138  $(DX_LATEX_OUTPUT) stamp-doxygen
139
140FORCE:
141
142
Note: See TracBrowser for help on using the repository browser.