if MAINTAINER_MODE
PROJECT_NAME_EN = "The M17N Library"
-PROJECT_NAME_JA = "M17N ¿¸À¸ì¥é¥¤¥Ö¥é¥ê"
+PROJECT_NAME_JA = "M17N ¥é¥¤¥Ö¥é¥ê"
PROJECT_VERSION = @PACKAGE_VERSION@
DOXYGEN = doxygen
dev-latex latex-dev: ${LATEX_DEV_TARGET}
MAN_USR_TARGET = man/man1/m17n-config.1 man/man3/m17nIntro.3m17n man/man5/m17nDBgeneral.5
-MAN_JA_TARGET = man/ja//man1/m17n-config.1 man/ja//man3/m17nIntro.3m17n man/ja/man5/m17nDatabaseFormat.5
+MAN_JA_TARGET = man/ja/man1/m17n-config.1 man/ja/man3/m17nIntro.3m17n man/ja/man5/m17nDatabaseFormat.5
MAN_TARGET = ${MAN_USR_TARGET} ${MAN_JA_TARGET}
usr-man man-usr: ${MAN_USR_TARGET}
rm -rf `dirname $@`
${DOXYGEN} $<
-%/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 data-%/m17n-lib.sty utils/latex.sh
+%/latex/m17n-lib.dvi: %/latex/refman.tex data-%/m17n-lib.sty utils/latex.sh
utils/latex.sh `dirname $@` latex
%/latex/m17n-lib.ps: %/latex/m17n-lib.dvi utils/dvips.sh
rm -rf doxywork man/man5/*
ruby utils/mkman.rb 5 usr/man/man5 man/man5
-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
- echo "GENERATE_HTML = NO" >> doxytemp
- echo "GENERATE_MAN = YES" >> doxytemp
- echo "MAN_OUTPUT = sample" >> doxytemp
- echo "OPTIMIZE_OUTPUT_FOR_C = yes" >> doxytemp
- ${DOXYGEN} doxytemp
- [ -d "ja/man3m" ] || mkdir -p ja/man3m
- rm -rf ja/man3m/index.*
- ruby utils/mkman.rb ja
- rm -rf doxytemp sample
+man/ja/man1/%: ja/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb
+ $(mkinstalldirs) man/ja/man1
+ rm -rf doxywork man/ja/man1/*
+ ruby utils/mkman.rb 1 ja/man/man1 man/ja/man1
+
+man/ja/man3/%: ja/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb
+ $(mkinstalldirs) man/ja/man3
+ rm -rf doxywork man/ja/man3/*
+ ruby utils/mkman.rb 3m17n ja/man/man3 man/ja/man3
+
+man/ja/man5/%: ja/man/man5/% sample/man3/SampleGroup.3 utils/mkman.rb
+ $(mkinstalldirs) man/ja/man5
+ rm -rf doxywork man/ja/man5/*
+ ruby utils/mkman.rb 5 ja/man/man5 man/ja/man5
CLEANFILES=doxyfile-* ${TARGET} *.tar.gz warning *~
cp ${distdir}.tar.gz ${FTPDIR}
-.PRECIOUS: usr/latex/refman.tex usr/latex/m17n-lib.tex %/man/man3/m17nIntro.3m ${SRCALL}
+.PRECIOUS: %/latex/refman.tex %/man/man3/m17nIntro.3m ${SRCALL}
endif
#!/bin/sh
+# -*- coding: euc-jp; -*-
# $1: target directory (usr/latex, ja/latex, or dev/latex)
# $2: latex commnad (latex, platex, or pdflatex)
export TEXINPUTS
cd $1
LATEX=$2
+if [ $USR_JA_DEV = "ja" ] ; then
+ LATEX=platex
+ sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
+ -e '/M17N ¥é¥¤¥Ö¥é¥ê ¥â¥¸¥å¡¼¥ëº÷°ú/,/pages/ d' \
+ -e '/M17N ¥é¥¤¥Ö¥é¥ê ¥Õ¥¡¥¤¥ë¤Î²òÀâ/,/textprop_8c/ d' \
+ -e 's/M17N ¥é¥¤¥Ö¥é¥ê ¥Ú¡¼¥¸¤Î²òÀâ/Appendix/' \
+ < refman.tex > m17n-lib.tex
+else
+ sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
+ -e '/The M17N Library Module Index/,/pages/ d' \
+ -e '/The M17N Library File Documentation/,/textprop_8c/ d' \
+ -e 's/The M17N Library Page Documentation/Appendix/' \
+ < refman.tex > m17n-lib.tex
+fi
${LATEX} m17n-lib.tex
if [ "${USR_JA_DEV}" = "ja" ] ; then
nkf -e < m17n-lib.idx > temp.idx; mv temp.idx m17n-lib.idx