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.
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.
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.
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.
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
27 html_DATA = $(builddir)/html/index.html
28 htmldir = $(pkgdatadir)/html
31 htmlja_DATA = $(builddir)/ja/html/index.html
32 htmljadir = $(htmldir)/ja
38 -test -d html && cp -p $(static_pages) $(DESTDIR)$(htmldir)
39 -test -d html && cp -dpR $(builddir)/html/* $(DESTDIR)$(htmldir)
41 -test -d $(builddir)/html/ja && cp -dpR $(builddir)/ja/html/* $(DESTDIR)$(htmldir)/ja
45 $(RM) -rf $(DESTDIR)$(htmldir)
47 distdocdir=$(top_srcdir)/@DISTDOCDIR@
48 distdocjadir=$(top_srcdir)/@DISTDOCJADIR@
51 -$(mkinstalldirs) $(distdocdir)/html
52 cp -p $(static_pages) $(distdocdir)/html
53 cp -p html/* $(distdocdir)/html
55 -$(mkinstalldirs) $(distdocjadir)/html/ja
56 cp -p ja/html/* $(distdocjadir)/html/ja
59 CMNTST=<span class="comment">/
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
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
78 CLEANFILES=*~ .*~ ./\#*\# *.log latex html man