X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=Makefile.am;h=d9cab2cad6b456d4ebe036e0ceaf39bffe9842b7;hp=6569044a90444624cb59ff19fab680d2f619d9f7;hb=8de95b8825322b99e8df39279578a07f5f8240f7;hpb=4e48b96b9a983fb146df1a86739e5dd7a7294eab diff --git a/Makefile.am b/Makefile.am index 6569044..d9cab2c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 +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) @@ -14,13 +52,12 @@ SRCFILES = $(shell echo @M17NLIB@/src/*.[ch] @M17NLIB@/example/README.txt) PROJECT_NAME_EN = "The M17N Library" PROJECT_NAME_JA = "M17N ¿¸À¸ì¥é¥¤¥Ö¥é¥ê" PROJECT_VERSION = @PACKAGE_VERSION@ -M17NLIB = @M17NLIB@ 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 @@ -99,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 $@` @@ -112,15 +154,15 @@ doxyfile-man.usr: doxyfile-man %/latex/m17n-lib.tex: %/latex/refman.tex utils/refman-filter.sed sed -f utils/refman-filter.sed < $< > $@ -%/latex/m17n-lib.dvi: %/latex/m17n-lib.tex - sed -f utils/refman-filter.sed < $< > $@ +%/latex/m17n-lib.dvi: %/latex/m17n-lib.tex data-%/m17n-lib.sty utils/latex.sh + utils/latex.sh `dirname $@` latex -%/latex/m17n-lib.ps: %/latex/m17n-lib.tex data-%/m17n-lib.sty utils/latex.sh - utils/latex.sh `dirname $@` platex - emacs -batch -q -l utils/mokuji.el -f write-mokuji $@ +%/latex/m17n-lib.ps: %/latex/m17n-lib.dvi utils/dvips.sh + utils/dvips.sh `dirname $@` dvips +# emacs -batch -q -l utils/mokuji.el -f write-mokuji $@ %/latex/m17n-lib.pdf: %/latex/m17n-lib.tex data-%/m17n-lib.sty utils/latex.sh - utils/latex.sh `dirname $@ `pdflatex + utils/latex.sh `dirname $@` pdflatex %/man/man3/m17nIntro.3m: doxyfile-man.% ${SRCFILES} utils/%_filter.rb rm -rf `dirname $@` @@ -140,7 +182,7 @@ usr/man3m/%.3m: usr/man/man3/%.3m sample.c utils/mkman.rb ruby utils/mkman.rb usr rm -rf doxytemp sample -man/ja/man3m/%.3m: ja/man/man3/%.3m sample-ja.c utils/mkman.rb +ja/man3m/%.3m: ja/man/man3/%.3m sample-ja.c utils/mkman.rb -${DOXYGEN} -g doxytemp echo "INPUT = sample.c" >> doxytemp echo "GENERATE_LATEX = NO" >> doxytemp @@ -149,20 +191,24 @@ man/ja/man3m/%.3m: ja/man/man3/%.3m sample-ja.c utils/mkman.rb echo "MAN_OUTPUT = sample" >> doxytemp echo "OPTIMIZE_OUTPUT_FOR_C = yes" >> doxytemp ${DOXYGEN} doxytemp - [ -d "man/ja/man3m" ] || mkdir -p man/ja/man3m - rm -rf man/index.* + [ -d "ja/man3m" ] || mkdir -p ja/man3m + rm -rf ja/man3m/index.* ruby utils/mkman.rb ja rm -rf doxytemp sample -CLEANFILES = doxyfile doxyfile-*.* m17n.tag warning \ - */html/index.html */latex/refman.* +CLEANFILES=doxyfile-* *.tar.gz warning *~ -DISTCLEANFILES = doxyfile *~ +clean-local: + rm -rf usr dev ja doxywork -DISTFILES = usr/html usr/man3m usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps +WEBDIR = /project/web/extra/m17n-lib/m17n-docs -pack: latex/m17n-lib.ps html/index.html man/man3m/m17nIntro.3m dist +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 +.PRECIOUS: %/latex/m17n-lib.tex %/man/man3/m17nIntro.3m endif