source: trunk/doc/Makefile.am @ 1615

Last change on this file since 1615 was 1487, checked in by Jari Häkkinen, 13 years ago

Addresses #436. GPL license copy reference should also be updated.

  • 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 1487 2008-09-10 08:41:36Z jari $
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 3 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 yat. If not, see <http://www.gnu.org/licenses/>.
24
25EXTRA_DIST = build_tool.doxygen concepts.doxygen \
26  namespaces.doxygen Statistics.doxygen
27
28
29doc: html dvi ps pdf
30
31stamp-doxygen: doxygen.config Makefile first_page.doxygen
32  @$(MAKE) $(AM_MAKEFLAGS) update-stamp-doxygen
33
34update-stamp-doxygen: FORCE
35  @input=`$(SED) -n 's/^[ \t]*INPUT[ \t]*=[ \t]*//p' doxygen.config`;\
36  pattern=`$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' \
37  doxygen.config`;\
38  if (test -z "$$pattern"); then \
39    pattern="*.c *.cc *.cxx *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp *.h++ *.idl";\
40  fi;\
41  for i in $$input; do \
42    if (test -d $$i); then \
43      for p in $$pattern; do \
44        input2="$$input2 `find $$i -name \"$$p\"|xargs`";\
45      done; \
46    else \
47      input2="$$input2 $$i"; \
48    fi; \
49  done; \
50  for i in $$input2; do \
51    if (test $$i -nt stamp-doxygen); then \
52      echo timestamp > stamp-doxygen; \
53    fi; \
54  done;
55
56if HAVE_DOXYGEN
57
58
59# these are supported by automake and *-local will add target to *
60dvi-local: update-stamp-doxygen $(PACKAGE).dvi
61ps-local: update-stamp-doxygen $(PACKAGE).ps
62pdf-local: update-stamp-doxygen $(PACKAGE).pdf
63html-local: update-stamp-doxygen $(DX_HTML_OUTPUT)/index.html
64
65# this is not supported by automake - there is no target latex
66latex-local: $(DX_LATEX_OUTPUT)/refman.tex
67
68$(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config stamp-doxygen
69  @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | $(DOXYGEN) -;
70
71$(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config stamp-doxygen
72  @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | $(DOXYGEN) -;
73
74$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
75  cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex
76  cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi
77
78$(PACKAGE).ps: $(PACKAGE).dvi
79  cd $(DX_LATEX_OUTPUT) && dvips -q -o refman.ps refman.dvi;
80  cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps
81
82$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
83  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
84  cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf
85
86endif
87
88install-data-hook:
89  @$(NORMAL_INSTALL)
90  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
91
92uninstall-hook:
93  @$(NORMAL_UNINSTALL)
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.