DOXYGEN = doxygen
-EXAMPLE = \
+EXAMPLE_PROGS = \
@M17NLIB@/example/mconv.c \
@M17NLIB@/example/mview.c \
@M17NLIB@/example/mdate.c \
@M17NLIB@/example/mimx-anthy.c \
@M17NLIB@/example/mimx-ispell.c
+EXAMPLE_MIMS = \
+ @M17NLIB@/example/anthy.mim \
+ @M17NLIB@/example/ispell.mim
+
DBFORMAT = \
@M17NDB@/FORMATS
-MAN1 = data/m17n-config.txt ${EXAMPLE}
+MAN1 = data/m17n-config.txt ${EXAMPLE_PROGS}
MAN3 = @M17NLIB@/src/m17n-core.h \
@M17NLIB@/src/m17n.h \
SRCALL = \
mainpage.txt \
${MAN3} \
- data/m17n-config.txt data/example.txt data/dbformat.txt
+ data/m17n-config.txt data/exprog.txt data/exmim.txt data/dbformat.txt
HTML_USR_TARGET = usr/html/index.html usr/html/parrot.png
HTML_JA_TARGET = ja/html/index.html ja/html/parrot.png
-e 's/%OUTPUT_LANGUAGE%/English/' \
< $< >$@
-data/example.txt: ${EXAMPLE} utils/example.sh
- utils/example.sh ${EXAMPLE} > $@
+data/exprog.txt: ${EXAMPLE_PROGS} utils/exprog.sh
+ utils/exprog.sh ${EXAMPLE_PROGS} > $@
+
+data/exmim.txt: ${EXAMPLE_MIMS} utils/exmim.sh
+ utils/exmim.sh ${EXAMPLE_MIMS} > $@
data/dbformat.txt: ${DBFORMAT} utils/dbformat.sh
utils/dbformat.sh ${DBFORMAT}/*.txt > $@
man/man3/%: usr/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb
$(mkinstalldirs) man/man3
- rm -rf doxywork usr/man3/*
+ rm -rf doxywork man/man3/*
ruby utils/mkman.rb 3m17n usr/man/man3 man/man3
man/man5/%: usr/man/man5/% sample/man3/SampleGroup.3 utils/mkman.rb
$(mkinstalldirs) man/man5
- rm -rf doxywork usr/man5/*
+ 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
+++ /dev/null
-#!/bin/sh
-
-cat <<EOF
-/***en @page m17nExample Example Programs
-
-This section describes these example programs. They are to demonstrate
-the usage of the m17n library, not for practical use.
-
-<ul>
-EOF
-
-cat $* | grep '@page' | sed -e 's/@page \([^ ]*\)/<li> @ref \1 "\1" --/'
-
-cat <<EOF
-</ul>
-*/
-EOF
-
-cat $* | \
-sed -n -e '/\/\*\*\*/,/\*\// p' | \
-sed -e 's/@section/@subsection/' \
- -e 's/@page \([^ ]*\)/@section \1 \1 --/'
--- /dev/null
+#!/bin/sh
+
+cat <<EOF
+/***en @page m17nExMim Example Input Methods
+
+This section describes these example input methods. They are to
+demonstrate the usage of the m17n library, not for practical use.
+
+<ul>
+EOF
+
+cat $* | grep '@page' | sed -e 's/;; @page \([^.]*\).mim/<li> @ref \1 "\1.mim" --/'
+
+cat <<EOF
+</ul>
+*/
+EOF
+
+cat $* | \
+sed -n -e '/;; \/\*\*\*/,/;; \*\// p' | \
+sed -e 's/;; *//' \
+ -e 's/@section/@subsection/' \
+ -e 's/@page \([^.]*\).mim/@section \1 \1.mim --/'
--- /dev/null
+#!/bin/sh
+
+cat <<EOF
+/***en @page m17nExProg Example Programs
+
+This section describes these example programs. They are to demonstrate
+the usage of the m17n library, not for practical use.
+
+<ul>
+EOF
+
+cat $* | grep '@page' | sed -e 's/@page \([^ ]*\)/<li> @ref \1 "\1" --/'
+
+cat <<EOF
+</ul>
+*/
+EOF
+
+cat $* | \
+sed -n -e '/\/\*\*\*/,/\*\// p' | \
+sed -e 's/@section/@subsection/' \
+ -e 's/@page \([^ ]*\)/@section \1 \1 --/'