From 777dcce240283bcb61dcb8c6be5cc400e1d2578b Mon Sep 17 00:00:00 2001 From: tsutsumi <> Date: Sat, 1 Nov 2003 21:58:10 +0000 Subject: [PATCH] add document dist rules --- doc/Makefile.am | 94 ++++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 51 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 528f8c3..72cf7a3 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,85 +1,77 @@ -EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS) +## Process this file with automake to produce Makefile.in +## Copyright (C) 2003 TSUTSUMI Kikuo. +## This file is part of the CCUnit Library. -DOXYGEN=@DOXYGEN@ -doxygen_input = header.html footer.html -static_pages = FAQ -DOXYSRCS=mainpage.dox cookbook.dox +## 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. + +## 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. -CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c +## 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. -if DOC +# $Id$ + +EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS) +doxygen_input=header.html footer.html +DOXYSRCS=mainpage.dox cookbook.dox +html_DATA = html/index.html htmldir = $(pkgdatadir)/html -distdocdir = $(top_distdir)/$(PACKAGE)-$(VERSION)-doc -if JPNDOC -htmljadir = $(pkgdatadir)/ja/html -distdocjadir = $(top_distdir)/$(PACKAGE)-$(VERSION)-doc-ja + +if ENABLE_JADOC +htmlja_DATA = ja/html/index.html +htmljadir = $(htmldir)/ja endif +static_pages=FAQ + install-data-hook: - -test -d html && cp -p $(static_pages) html - -test -d html && cp -dpR html/* $(DESTDIR)$(htmldir) -if JPNDOC - -test -d ja/html && cp -dpR ja/html/* $(DESTDIR)$(htmljadir) + -test -d html && cp -p $(static_pages) $(DESTDIR)$(htmldir) + -test -d html && cp -dpR html/* $(DESTDIR)$(htmldir) +if ENABLE_JADOC + -test -d html/ja && cp -dpR ja/html/* $(DESTDIR)$(htmldir)/ja endif uninstall-local: $(RM) -rf $(DESTDIR)$(htmldir) -if JPNDOC - $(RM) -rf $(DESTDIR)$(htmljadir) -endif -docs: $(static_pages) html/index.html ja/html/index.html +distdocdir=@DISTDOCDIR@ +distdocjadir=@DISTDOCJADIR@ dist-docs: + -$(mkinstalldirs) $(distdocdir)/html cp -p $(static_pages) $(distdocdir)/html cp -p html/* $(distdocdir)/html -if JPNDOC - cp -p ja/html/* $(distdocjadir)/ja/html +if ENABLE_JADOC + -$(mkinstalldirs) $(distdocjadir)/html/ja + cp -p html/* $(distdocjadir)/html/ja endif -else - -install-data-hook: -uninstall-local: -docs: - -endif - - CMNTST=/ CMNTED=/ html/index.html: Doxyfile Doxyfile.en \ $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS) - $(DOXYGEN) Doxyfile.en + doxygen 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 JPNDOC -ja/html/index.html: Doxyfile Doxyfile.jp \ +if ENABLE_JADOC +ja/html/index.html: Doxyfile Doxyfile.en \ $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS) - $(DOXYGEN) Doxyfile.jp + doxygen 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 -else - -ja/html/index.html: - @true - endif -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 - -CLEANFILES=*~ .*~ ./\#*\# *.log +CLEANFILES=*~ .*~ ./\#*\# *.log latex html man -- 2.11.0