-# -*- 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 \
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)
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
-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 $@`
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