source: trunk/doc/Makefile.am @ 1264

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

removing leftover

  • 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 1264 2008-04-08 23:14:20Z 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
27DX_HTML_OUTPUT=$(srcdir)/html
28DX_LATEX_OUTPUT=$(srcdir)/latex
29
30stamp-doxygen: doxygen.config Makefile
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=\
36  `$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' 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 $ii"; \
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
57doc: html dvi ps pdf
58
59EXTRA_DIST = $(srcdir)/$(PACKAGE).dvi $(srcdir)/$(PACKAGE).ps \
60$(srcdir)/$(PACKAGE).pdf $(DX_LATEX_OUTPUT) $(DX_HTML_OUTPUT)
61
62# these are supported by automake and *-local will add target to *
63dvi-local: update-stamp-doxygen $(srcdir)/$(PACKAGE).dvi
64ps-local: update-stamp-doxygen $(srcdir)/$(PACKAGE).ps
65pdf-local: update-stamp-doxygen $(srcdir)/$(PACKAGE).pdf
66html-local: update-stamp-doxygen $(DX_HTML_OUTPUT)/index.html
67
68# this is not supported by automake - there is no target latex
69latex-local: $(DX_LATEX_OUTPUT)/refman.tex
70
71$(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config stamp-doxygen
72  @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | doxygen -;
73
74$(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config stamp-doxygen
75  @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | doxygen -;
76
77$(srcdir)/$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
78  cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex
79  cp $(DX_LATEX_OUTPUT)/refman.dvi $(srcdir)/$(PACKAGE).dvi
80
81$(srcdir)/$(PACKAGE).ps: $(PACKAGE).dvi
82  cd $(DX_LATEX_OUTPUT) && dvips -o refman.ps refman.dvi;
83  cp $(DX_LATEX_OUTPUT)/refman.ps $(srcdir)/$(PACKAGE).ps
84
85
86$(srcdir)/$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
87  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
88  cp $(DX_LATEX_OUTPUT)/refman.pdf $(srcdir)/$(PACKAGE).pdf
89
90endif
91
92install-data-hook:
93  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
94
95uninstall-hook:
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) $(srcdir)$(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) $(srcdir)$(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) $(srcdir)$(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 *~
135
136clean-local:
137  rm -rf doxygen.config
138
139FORCE:
140
141
Note: See TracBrowser for help on using the repository browser.