*** empty log message ***
[m17n/m17n-docs.git] / Makefile.am
index c51e9c5..d9cab2c 100644 (file)
@@ -1,5 +1,28 @@
-#      -*- coding: euc-jp; -*-
-# This makefile is for maintainer only.
+# Makefile.am -- Makefile for the m17n library documentation.
+#                                               -*- coding: euc-jp; -*-
+# Copyright (C) 2003
+#   National Institute of Advanced Industrial Science and Technology (AIST)
+#   Registration Number H15PRO112
+
+# This file is part of the m17n library documentation, a sub-part of
+# the m17n library.
+
+# The m17n library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+
+# The m17n 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 General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with the m17n library; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+## Process this file with Automake to create Makefile.in
 
 pkgdata_DATA = \
        usr/html/index.html \
@@ -19,6 +42,9 @@ install-pkgdataDATA: $(pkgdata_DATA)
        cd usr/man3m; \
          for f in *.3m; do $(INSTALL_DATA) $$f $(mandir)/man3m/$$f; done
 
+#
+# The followings are for maintainers only.
+#
 if MAINTAINER_MODE
 
 SRCFILES = $(shell echo @M17NLIB@/src/*.[ch] @M17NLIB@/example/README.txt)
@@ -29,9 +55,9 @@ PROJECT_VERSION = @PACKAGE_VERSION@
 
 DOXYGEN = doxygen
 
-usr-html html-usr: usr/html/index.html
-ja-html html-ja: ja/html/index.html
-dev-html html-dev: dev/html/index.html
+usr-html html-usr: usr/html/index.html usr/html/parrot.gif
+ja-html html-ja: ja/html/index.html ja/html/parrot.gif
+dev-html html-dev: dev/html/index.html dev/html/parrot.gif
 
 usr-latex latex-usr: usr/latex/m17n-lib.ps
 ja-latex latex-ja: ja/latex/m17n-lib.ps
@@ -110,11 +136,16 @@ doxyfile-man.usr: doxyfile-man
            -e 's/%OUTPUT_LANGUAGE%/English/' \
          < $< >$@
 
-%/html/index.html: doxyfile-html.% ${SRCFILES} data-%/mainpage.txt data-%/dbformat.txt \
+%/html/index.html: doxyfile-html.% ${SRCFILES} \
+                       header.html footer.html \
+                       data-%/mainpage.txt data-%/dbformat.txt \
                        utils/%_filter.rb m17n-lib.css
        rm -rf `dirname $@`
        ${DOXYGEN} $<
 
+%/html/parrot.gif: parrot.gif
+       cp $< $@
+
 %/latex/refman.tex: doxyfile-latex.% ${SRCFILES} data-%/mainpage.txt data-%/dbformat.txt \
                        utils/%_filter.rb
        rm -rf `dirname $@`
@@ -123,8 +154,6 @@ doxyfile-man.usr: doxyfile-man
 %/latex/m17n-lib.tex: %/latex/refman.tex utils/refman-filter.sed
        sed -f utils/refman-filter.sed < $< > $@
 
-.PRECIOUS: %/latex/m17n-lib.tex
-
 %/latex/m17n-lib.dvi: %/latex/m17n-lib.tex data-%/m17n-lib.sty utils/latex.sh
        utils/latex.sh `dirname $@` latex
 
@@ -167,4 +196,19 @@ ja/man3m/%.3m: ja/man/man3/%.3m sample-ja.c utils/mkman.rb
        ruby utils/mkman.rb ja
        rm -rf doxytemp sample
 
+CLEANFILES=doxyfile-* *.tar.gz warning *~
+
+clean-local:
+       rm -rf usr dev ja doxywork
+
+WEBDIR = /project/web/extra/m17n-lib/m17n-docs
+
+web: $(pkgdata_DATA)
+       [ -d ${WEBDIR} ] || mkdir ${WEBDIR}
+       [ -f ${distdir}.tar.gz ] || make dist
+       cp ${distdir}.tar.gz ${WEBDIR}
+       cp usr/html/* ${WEBDIR}
+
+.PRECIOUS: %/latex/m17n-lib.tex %/man/man3/m17nIntro.3m
+
 endif