OSDN Git Service

inserted the relative path from configure.
[ccunit/ccunit.git] / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ##    Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3 ##    This file is part of the CCUnit Library.
4
5 ##    The CCUnit Library is free software; you can redistribute it and/or
6 ##    modify it under the terms of the GNU Lesser General Public License
7 ##    as published by the Free Software Foundation; either version 2.1 of
8 ##    the License, or (at your option) any later version.
9
10 ##    The CCUnit Library is distributed in the hope that it will be
11 ##    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 ##    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ##    GNU Lesser General Public License for more details.
14
15 ##    You should have received a copy of the GNU Lesser General Public
16 ##    License along with the CCUnit Library; see the file COPYING.LESSER.
17 ##    If not, write to the Free Software Foundation, Inc., 59 Temple
18 ##    Place - Suite 330, Boston, MA 02111-1307, USA.  
19
20 # $Id$
21
22 EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS)
23 doxygen_input=$(top_srcdir)/doc/header.html $(top_srcdir)/doc/footer.html \
24         $(top_srcdir)/doc/ccunit.css
25 DOXYSRCS=$(top_srcdir)/doc/mainpage.dox $(top_srcdir)/doc/cookbook.dox
26
27 html_DATA = $(builddir)/html/index.html
28 htmldir = $(pkgdatadir)/html
29
30 if ENABLE_JADOC
31 htmlja_DATA = $(builddir)/ja/html/index.html
32 htmljadir = $(htmldir)/ja
33 endif
34
35 static_pages=FAQ
36
37 install-data-hook:
38         -test -d html && cp -p $(static_pages) $(DESTDIR)$(htmldir)
39         -test -d html && cp -dpR $(builddir)/html/* $(DESTDIR)$(htmldir)
40 if ENABLE_JADOC
41         -test -d $(builddir)/html/ja && cp -dpR $(builddir)/ja/html/* $(DESTDIR)$(htmldir)/ja
42 endif
43
44 uninstall-local:
45         $(RM) -rf $(DESTDIR)$(htmldir)
46
47 distdocdir=$(top_srcdir)/@DISTDOCDIR@
48 distdocjadir=$(top_srcdir)/@DISTDOCJADIR@
49
50 dist-docs:
51         -$(mkinstalldirs) $(distdocdir)/html
52         cp -p $(static_pages) $(distdocdir)/html
53         cp -p html/* $(distdocdir)/html
54 if ENABLE_JADOC
55         -$(mkinstalldirs) $(distdocjadir)/html/ja
56         cp -p ja/html/* $(distdocjadir)/html/ja
57 endif
58
59 CMNTST=<span class="comment">/
60 CMNTED=/</span>
61
62 html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.en \
63                 $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
64         doxygen $(top_srcdir)/doc/Doxyfile.en
65         sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
66                 html/cookbook.html > cookbook-cmntfix.html
67         mv cookbook-cmntfix.html html/cookbook.html
68
69 if ENABLE_JADOC
70 ja/html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.ja \
71                 $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
72         doxygen $(top_srcdir)/doc/Doxyfile.ja
73         sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
74                 ja/html/cookbook.html > cookbook-cmntfix.html
75         mv cookbook-cmntfix.html ja/html/cookbook.html
76 endif
77
78 CLEANFILES=*~ .*~ ./\#*\# *.log latex html man