source: trunk/doc/Makefile.am @ 1481

Last change on this file since 1481 was 1460, checked in by Peter, 14 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
RevLine 
[5]1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1460 2008-08-31 17:36:13Z peter $
4
[831]5# Copyright (C) 2003 Jari Häkkinen
6# Copyright (C) 2005 Peter Johansson
[1275]7# Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2008 Peter Johansson
[675]9#
[1437]10# This file is part of the yat library, http://dev.thep.lu.se/yat
[675]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
[1438]27EXTRA_DIST = build_tool.doxygen concepts.doxygen \
[1414]28  namespaces.doxygen Statistics.doxygen
[1263]29
[1303]30
[1266]31doc: html dvi ps pdf
32
[1438]33stamp-doxygen: doxygen.config Makefile first_page.doxygen
[1263]34  @$(MAKE) $(AM_MAKEFLAGS) update-stamp-doxygen
35
36update-stamp-doxygen: FORCE
37  @input=`$(SED) -n 's/^[ \t]*INPUT[ \t]*=[ \t]*//p' doxygen.config`;\
[1405]38  pattern=`$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' \
39  doxygen.config`;\
[1263]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 \
[1402]46        input2="$$input2 `find $$i -name \"$$p\"|xargs`";\
[1263]47      done; \
[1259]48    else \
[1414]49      input2="$$input2 $$i"; \
[1263]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; \
[1259]56  done;
57
[1209]58if HAVE_DOXYGEN
[799]59
[957]60
[1209]61# these are supported by automake and *-local will add target to *
[1265]62dvi-local: update-stamp-doxygen $(PACKAGE).dvi
63ps-local: update-stamp-doxygen $(PACKAGE).ps
64pdf-local: update-stamp-doxygen $(PACKAGE).pdf
[1263]65html-local: update-stamp-doxygen $(DX_HTML_OUTPUT)/index.html
[957]66
[1259]67# this is not supported by automake - there is no target latex
68latex-local: $(DX_LATEX_OUTPUT)/refman.tex
69
[1263]70$(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config stamp-doxygen
[1397]71  @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | $(DOXYGEN) -;
[957]72
[1263]73$(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config stamp-doxygen
[1397]74  @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | $(DOXYGEN) -;
[957]75
[1265]76$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
[1259]77  cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex
[1265]78  cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi
[5]79
[1265]80$(PACKAGE).ps: $(PACKAGE).dvi
[1268]81  cd $(DX_LATEX_OUTPUT) && dvips -q -o refman.ps refman.dvi;
[1265]82  cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps
[489]83
[1265]84$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
[1259]85  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
[1265]86  cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf
[1256]87
[1209]88endif
89
[1256]90install-data-hook:
[1460]91  @$(NORMAL_INSTALL)
[1256]92  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
93
[1257]94uninstall-hook:
[1460]95  @$(NORMAL_UNINSTALL)
[1257]96  rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \
97  $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf
98
[1256]99install-html-am:
[1269]100  @if test -d $(DX_HTML_OUTPUT); then \
[1257]101  test -d $(DESTDIR)$(htmldir)/html || \
102    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
[1259]103  $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
[1256]104  fi
105
106install-dvi-am:
107  @if test -f "$(PACKAGE).dvi"; then \
[1257]108  test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\
[1265]109  $(INSTALL_DATA) $(PACKAGE).dvi \
[1259]110   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
[1257]111  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \
[1259]112   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
[1256]113  fi
114
115install-ps-am:
116  @if test -f "$(PACKAGE).ps"; then \
[1257]117  test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\
[1265]118  $(INSTALL_DATA) $(PACKAGE).ps \
[1259]119   $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
120  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
[1256]121  fi
122
123install-pdf-am:
124  @if test -f "$(PACKAGE).pdf"; then \
[1257]125  test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\
[1265]126  $(INSTALL_DATA) $(PACKAGE).pdf \
[1259]127   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
128  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \
129   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
[1256]130  fi
131
132
[1209]133mostlyclean-local:
[1347]134  rm -f doxygen.error *~
[1209]135
136clean-local:
[1265]137  rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \
[1268]138  $(DX_LATEX_OUTPUT) stamp-doxygen
[1209]139
140FORCE:
[1259]141
142
Note: See TracBrowser for help on using the repository browser.