*** empty log message ***
[m17n/m17n-docs.git] / Makefile.am
index 884fdfa..d9cab2c 100644 (file)
@@ -1,12 +1,50 @@
-#      -*- 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 \
        usr/man3m/m17nIntro.3m \
        usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps
 
 
 pkgdata_DATA = \
        usr/html/index.html \
        usr/man3m/m17nIntro.3m \
        usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps
 
+pkgdatadir = $(datadir)/m17n-lib
+
+EXTRA_DIST = usr/html usr/man3m usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps
 
 
+install-pkgdataDATA: $(pkgdata_DATA)
+       $(mkinstalldirs) $(pkgdatadir)/html $(mandir)/man3m
+       $(INSTALL_DATA) usr/latex/m17n-lib.dvi $(pkgdatadir)/m17n-lib.dvi
+       $(INSTALL_DATA) usr/latex/m17n-lib.ps $(pkgdatadir)/m17n-lib.ps
+       cd usr/html; \
+         for f in *.html; do $(INSTALL_DATA) $$f $(pkgdatadir)/html/$$f; done
+       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)
 if MAINTAINER_MODE
 
 SRCFILES = $(shell echo @M17NLIB@/src/*.[ch] @M17NLIB@/example/README.txt)
@@ -17,9 +55,9 @@ PROJECT_VERSION = @PACKAGE_VERSION@
 
 DOXYGEN = doxygen
 
 
 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
 
 usr-latex latex-usr: usr/latex/m17n-lib.ps
 ja-latex latex-ja: ja/latex/m17n-lib.ps
@@ -98,11 +136,16 @@ doxyfile-man.usr: doxyfile-man
            -e 's/%OUTPUT_LANGUAGE%/English/' \
          < $< >$@
 
            -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} $<
 
                        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 $@`
 %/latex/refman.tex: doxyfile-latex.% ${SRCFILES} data-%/mainpage.txt data-%/dbformat.txt \
                        utils/%_filter.rb
        rm -rf `dirname $@`
@@ -153,6 +196,19 @@ ja/man3m/%.3m: ja/man/man3/%.3m sample-ja.c utils/mkman.rb
        ruby utils/mkman.rb ja
        rm -rf doxytemp sample
 
        ruby utils/mkman.rb ja
        rm -rf doxytemp sample
 
-EXTRA_DIST = usr/html usr/man3m usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps
+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
 
 endif