1 ## Process this file with automake to produce Makefile.in
2 ## Copyright (C) 2003, 2010, 2013 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 DOXYSRCS=$(top_srcdir)/doc/mainpage.dox $(top_srcdir)/doc/cookbook.dox
26 html_DATA = $(builddir)/html/index.html
27 htmldir = $(pkgdatadir)/html
30 htmlja_DATA = $(builddir)/ja/html/index.html
31 htmljadir = $(htmldir)/ja
37 -test -d html && cp -p $(static_pages) $(DESTDIR)$(htmldir)
38 -test -d html && cp -dpR $(builddir)/html/* $(DESTDIR)$(htmldir)
40 -test -d $(builddir)/html/ja && cp -dpR $(builddir)/ja/html/* $(DESTDIR)$(htmldir)/ja
44 $(RM) -rf $(DESTDIR)$(htmldir)
46 distdocdir=$(top_srcdir)/@DISTDOCDIR@
47 distdocjadir=$(top_srcdir)/@DISTDOCJADIR@
50 -$(mkinstalldirs) $(distdocdir)/html
51 cp -p $(static_pages) $(distdocdir)/html
52 cp -pr html/* $(distdocdir)/html
54 -$(mkinstalldirs) $(distdocjadir)/html/ja
55 cp -pr ja/html/* $(distdocjadir)/html/ja
58 CMNTST=<span class="comment">/
61 html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.en \
62 $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
63 doxygen $(top_srcdir)/doc/Doxyfile.en
64 sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
65 html/cookbook.html > cookbook-cmntfix.html
66 mv cookbook-cmntfix.html html/cookbook.html
69 ja/html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.ja \
70 $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
71 doxygen $(top_srcdir)/doc/Doxyfile.ja
72 sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
73 ja/html/cookbook.html > cookbook-cmntfix.html
74 mv cookbook-cmntfix.html ja/html/cookbook.html
77 CLEANFILES=*~ .*~ ./\#*\# *.log latex html man