source: trunk/doc/Makefile.am @ 1809

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

updating copyright statements

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