X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=doc%2FMakefile.am;h=15633fa380e447ba4b8875e1b5b2c80365d8ace3;hb=45df28fa6284417ebcc5de1ad9a371dd4447b8c1;hp=fa9c54abcd58d76f9627d32963c1f5f6012a9bae;hpb=374ab4da9a48fa02ee19d44fc62a6d3479a06d3d;p=ccunit%2Fccunit.git diff --git a/doc/Makefile.am b/doc/Makefile.am index fa9c54a..15633fa 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,61 +1,77 @@ -EXTRA_DIST = $(doxygen_input) $(static_pages) mainpage.dox cookbook.dox +## Process this file with automake to produce Makefile.in +## Copyright (C) 2003, 2010, 2013 TSUTSUMI Kikuo. +## This file is part of the CCUnit Library. -doxygen_input = header.html footer.html -static_pages = FAQ -#static_pages = +## The CCUnit Library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Lesser General Public License +## as published by the Free Software Foundation; either version 2.1 of +## the License, or (at your option) any later version. -CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c +## The CCUnit Library is distributed in the hope that it will be +## useful, but WITHOUT ANY WARRANTY; without even the implied warranty +## of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU Lesser General Public License for more details. -if DOC +## You should have received a copy of the GNU Lesser General Public +## License along with the CCUnit Library; see the file COPYING.LESSER. +## If not, write to the Free Software Foundation, Inc., 59 Temple +## Place - Suite 330, Boston, MA 02111-1307, USA. -htmldir = $(pkgdatadir)/html -html_DATA = $(static_pages) html/index.html - -install-data-hook: - cp -p $(static_pages) html - cp -dpR html/* $(DESTDIR)$(htmldir) - -# Automake's "distcheck" is sensitive to having files left over -# after "make uninstall", so we have to clean up the install hook. -uninstall-local: - rm -rf $(DESTDIR)$(htmldir) +# $Id$ -dox: html/index.html +EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS) +doxygen_input=$(top_srcdir)/doc/header.html $(top_srcdir)/doc/footer.html +DOXYSRCS=$(top_srcdir)/doc/mainpage.dox $(top_srcdir)/doc/cookbook.dox -EXTRA_DIST += html - -dist-hook: - cp -p $(static_pages) $(distdir)/html +html_DATA = $(builddir)/html/index.html +htmldir = $(pkgdatadir)/html -else +if ENABLE_JADOC +htmlja_DATA = $(builddir)/ja/html/index.html +htmljadir = $(htmldir)/ja +endif -# We repeat the three targets in both the "if" and "else" clauses -# of the conditional, because the generated makefile will contain -# references to the targets (target "install" depends on target -# "install-datahook", for example), and some make programs get upset -# if no target exists. +static_pages=FAQ install-data-hook: -uninstall-local: -dox: - + -test -d html && cp -p $(static_pages) $(DESTDIR)$(htmldir) + -test -d html && cp -dpR $(builddir)/html/* $(DESTDIR)$(htmldir) +if ENABLE_JADOC + -test -d $(builddir)/html/ja && cp -dpR $(builddir)/ja/html/* $(DESTDIR)$(htmldir)/ja endif +uninstall-local: + $(RM) -rf $(DESTDIR)$(htmldir) + +distdocdir=$(top_srcdir)/@DISTDOCDIR@ +distdocjadir=$(top_srcdir)/@DISTDOCJADIR@ + +dist-docs: + -$(mkinstalldirs) $(distdocdir)/html + cp -p $(static_pages) $(distdocdir)/html + cp -pr html/* $(distdocdir)/html +if ENABLE_JADOC + -$(mkinstalldirs) $(distdocjadir)/html/ja + cp -pr ja/html/* $(distdocjadir)/html/ja +endif -all-local: dox - -html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) mainpage.dox - @DOXYGEN@ - -pdf: @PACKAGE@.pdf -@PACKAGE@.pdf: - $(MAKE) -C ./latex pdf - ln -s ./latex/refman.ps @PACKAGE@.ps - ln -s ./latex/refman.pdf @PACKAGE@.pdf - - -clean-local: - $(RM) -r latex - $(RM) -r html/* man @PACKAGE@.ps @PACKAGE@.pdf +CMNTST=/ +CMNTED=/ + +html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.en \ + $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS) + doxygen $(top_srcdir)/doc/Doxyfile.en + sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \ + html/cookbook.html > cookbook-cmntfix.html + mv cookbook-cmntfix.html html/cookbook.html + +if ENABLE_JADOC +ja/html/index.html: $(builddir)/Doxyfile $(top_srcdir)/doc/Doxyfile.ja \ + $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS) + doxygen $(top_srcdir)/doc/Doxyfile.ja + sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \ + ja/html/cookbook.html > cookbook-cmntfix.html + mv cookbook-cmntfix.html ja/html/cookbook.html +endif -CLEANFILES=*~ .*~ ./\#*\# *.log +CLEANFILES=*~ .*~ ./\#*\# *.log latex html man