source: trunk/doc/Makefile.am @ 1358

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

deleting doxygen.error in 'make clean'. The flaw was detecting by
'make distcheck' who complained about files left in build directory
after distclean
. Since 'doxygen.error' was left within 'distcheck',
it implies that doxygen is called within 'distcheck'. That is a
surprise and we should look into what that dependency comes
from. Perhaps we wanna keep the dependency, but then we should update
the README, which kind of says that no documentation will be installed
if you haven't called 'make doc'.

  • 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 1347 2008-06-20 13:34:37Z 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://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
27EXTRA_DIST = concepts.doxygen first_page.doxygen namespaces.doxygen \
28  Statistics.doxygen
29
30
31doc: html dvi ps pdf
32
33stamp-doxygen: doxygen.config Makefile
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=\
39  `$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' 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 $ii"; \
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  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
92
93uninstall-hook:
94  rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \
95  $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf
96
97install-html-am:
98  @if test -d $(DX_HTML_OUTPUT); then \
99  test -d $(DESTDIR)$(htmldir)/html || \
100    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
101  $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
102  fi
103
104install-dvi-am:
105  @if test -f "$(PACKAGE).dvi"; then \
106  test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\
107  $(INSTALL_DATA) $(PACKAGE).dvi \
108   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
109  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \
110   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
111  fi
112
113install-ps-am:
114  @if test -f "$(PACKAGE).ps"; then \
115  test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\
116  $(INSTALL_DATA) $(PACKAGE).ps \
117   $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
118  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
119  fi
120
121install-pdf-am:
122  @if test -f "$(PACKAGE).pdf"; then \
123  test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\
124  $(INSTALL_DATA) $(PACKAGE).pdf \
125   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
126  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \
127   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
128  fi
129
130
131mostlyclean-local:
132  rm -f doxygen.error *~
133
134clean-local:
135  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
136  $(DX_LATEX_OUTPUT) stamp-doxygen
137
138FORCE:
139
140
Note: See TracBrowser for help on using the repository browser.