version 1.4, 2004/09/10 08:24:02 |
version 1.7, 2009/02/22 23:35:12 |
|
|
# $OpenXM: OpenXM/src/asir-doc/Makefile.in,v 1.3 2004/06/30 22:42:32 takayama Exp $ |
# $OpenXM: OpenXM/src/asir-doc/Makefile.in,v 1.6 2009/02/22 16:40:05 ohara Exp $ |
OpenXM_HOME=@prefix@ |
OpenXM_HOME=@prefix@ |
OpenXM_doc_asir2000=${OpenXM_HOME}/doc/asir2000 |
OpenXM_doc_asir2000=${OpenXM_HOME}/doc/asir2000 |
OpenXM_lib_asir=${OpenXM_HOME}/lib/asir |
OpenXM_lib_asir=${OpenXM_HOME}/lib/asir |
OpenXM_man=${OpenXM_HOME}/man/man1 |
OpenXM_man=${OpenXM_HOME}/man/man1 |
CC=@CC@ |
CC=@CC@ |
|
PTEX=@PTEX@ |
DVIPDF=dvipdfmx |
DVIPDF=dvipdfmx |
|
LANGUAGES = en ja |
|
INSTALL = cp -f |
|
|
all: update-makefile |
.SUFFIXES: .dvi .pdf |
if [ ! -f .make_done ]; then make all2 ; touch .make_done ; fi |
|
install: |
|
if [ ! -f .install_done ] ; then make install2 ; touch .install_done ; fi |
|
|
|
all2: all-eg all-jp |
.dvi.pdf: |
install2: install-eg install-jp install-man-pages |
${DVIPDF} $< |
|
|
all-eg: texindex extract_man extract_func man-eg.dvi help-eg html-eg |
all: update-makefile |
all-jp: texindex extract_man extract_func man-jp.dvi help-jp html-jp html-internal-ja html-exp-ja |
if [ ! -f .make_done ]; then ${MAKE} all2 ; touch .make_done ; fi |
|
|
install-eg: all-eg |
all2: help-en html-en help-ja html-ja html-internal-ja html-exp-ja |
-rm -r -f ${OpenXM_lib_asir}/help-eg |
|
-tar cf - help-eg | (cd ${OpenXM_lib_asir}; tar xf - ) |
|
-mkdir ${OpenXM_doc_asir2000} |
|
-rm -r -f ${OpenXM_doc_asir2000}/html-eg |
|
-tar cf - html-eg | ( cd ${OpenXM_doc_asir2000}; tar xf - ) |
|
-cp man-eg.dvi ${OpenXM_doc_asir2000} |
|
|
|
install-jp: all-jp |
install: all |
-rm -r -f ${OpenXM_lib_asir}/help-jp |
if [ ! -f .install_done ] ; then \ |
-tar cf - help-jp | (cd ${OpenXM_lib_asir}; tar xf - ) |
mkdir ${OpenXM_doc_asir2000} ; \ |
-mkdir ${OpenXM_doc_asir2000} |
for j in ${LANGUAGES}; do \ |
-rm -r -f ${OpenXM_doc_asir2000}/html-jp |
rm -rf ${OpenXM_lib_asir}/help-$$j ; \ |
-tar cf - html-jp | ( cd ${OpenXM_doc_asir2000}; tar xf - ) |
rm -rf ${OpenXM_doc_asir2000}/html-$$j ; \ |
-cp man-jp.dvi ${OpenXM_doc_asir2000} |
done ; \ |
-tar cf - html-internal-ja | ( cd ${OpenXM_doc_asir2000}; tar xf - ) |
for j in ${LANGUAGES}; do \ |
-tar cf - html-exp-ja | ( cd ${OpenXM_doc_asir2000}; tar xf - ) |
tar cf - help-$$j | (cd ${OpenXM_lib_asir}; tar xf -) ; \ |
|
tar cf - html-$$j | (cd ${OpenXM_doc_asir2000}; tar xf -) ; \ |
|
${INSTALL} man-$$j.dvi ${OpenXM_doc_asir2000} ; \ |
|
done ; \ |
|
tar cf - html-internal-ja | (cd ${OpenXM_doc_asir2000}; tar xf -) ; \ |
|
tar cf - html-exp-ja | (cd ${OpenXM_doc_asir2000}; tar xf -) ; \ |
|
${INSTALL} asir.1 ${OpenXM_man} ; \ |
|
touch .install_done ; \ |
|
fi |
|
|
install-man-pages: |
|
-install asir.1 ${OpenXM_man} |
|
|
|
update-makefile: Makefile |
update-makefile: Makefile |
Makefile: Makefile.in |
Makefile: Makefile.in |
(rm -f .configure_done ; ./make-configure) |
(rm -f .configure_done ; ./make-configure) |
|
|
configure: |
configure: |
(cd jtexindex/C; ./configure; make clean) |
(cd jtexindex/C; ./configure; ${MAKE} clean) |
|
|
texindex: |
texindex: |
(cd jtexindex/C; make) |
(cd jtexindex/C; ${MAKE}) |
|
|
nkf: |
nkf: |
(cd nkf-1.7; make) |
(cd nkf-1.7; ${MAKE}) |
|
|
BUILTINS=\ |
BUILTINS=\ |
parts/builtin/array.texi parts/builtin/bit.texi\ |
parts/builtin/array.texi parts/builtin/bit.texi\ |
Line 88 INTERNAL_SRCS=internal.texi int-parts/datatype.texi in |
|
Line 87 INTERNAL_SRCS=internal.texi int-parts/datatype.texi in |
|
int-parts/datatype/string.texi\ |
int-parts/datatype/string.texi\ |
int-parts/datatype/vect.texi |
int-parts/datatype/vect.texi |
|
|
tmpJP: $(SRCS) |
tmp-en tmp-html-en: extract_man |
-rm -rf tmpJP |
tmp-ja tmp-ja_euc tmp-html-ja tmp-html-internal-ja: extract_man |
-mkdir tmpJP tmpJP/parts tmpJP/parts/builtin |
man-en.dvi man-ja.dvi: texindex |
-cp texinfo.* txi*tex tmpJP |
help-en help-func: extract_func |
-for i in ${SRCS}; do ./extract_man JP $$i > tmpJP/$$i; done |
html-win-en html-win: gen_hh |
|
|
tmpJPeuc: $(SRCS) |
tmp-ja: ${SRCS} |
-rm -rf tmpJPeuc |
-rm -rf $@ |
-mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin |
-mkdir -p $@/parts/builtin |
-cp texinfo.* txi*tex tmpJPeuc |
-cp texinfo.* txi*tex $@ |
-for i in ${SRCS}; do \ |
-for i in ${SRCS}; do ./extract_man ja $$i > $@/$$i; done |
./extract_man JP $$i | nkf -e > tmpJPeuc/$$i; \ |
|
done |
|
|
|
tmpJPhtml: $(SRCS) |
tmp-ja_euc: ${SRCS} |
-rm -rf tmpJPhtml |
-rm -rf $@ |
-mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin |
-mkdir -p $@/parts/builtin |
-cp texinfo.* txi*tex tmpJPhtml |
-cp texinfo.* txi*tex $@ |
|
-for i in ${SRCS}; do ./extract_man ja $$i | nkf -e > $@/$$i; done |
|
|
|
tmp-html-ja: ${SRCS} |
|
-rm -rf $@ |
|
-mkdir -p $@/parts/builtin |
|
-cp texinfo.* txi*tex $@ |
-for i in ${SRCS}; do \ |
-for i in ${SRCS}; do \ |
./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; \ |
./extract_man ja $$i | nkf -e | sed -e "s/@fref/@ref/g" > $@/$$i; \ |
done |
done |
|
|
tmpEG: $(SRCS) |
tmp-en: ${SRCS} |
-rm -rf tmpEG |
-rm -rf $@ |
-mkdir tmpEG tmpEG/parts tmpEG/parts/builtin |
-mkdir -p $@/parts/builtin |
-cp texinfo.* txi*tex tmpEG |
-cp texinfo.* txi*tex $@ |
-for i in ${SRCS}; do ./extract_man EG $$i > tmpEG/$$i; done |
-for i in ${SRCS}; do ./extract_man en $$i > $@/$$i; done |
|
|
tmpEGhtml: $(SRCS) |
tmp-html-en: ${SRCS} |
-rm -rf tmpEGhtml |
-rm -rf $@ |
-mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin |
-mkdir -p $@/parts/builtin |
-cp texinfo.* txi*tex tmpEG |
-cp texinfo.* txi*tex $@ |
-for i in ${SRCS}; do \ |
-for i in ${SRCS}; do \ |
./extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i;\ |
./extract_man en $$i | sed -e "s/@fref/@ref/g" > $@/$$i;\ |
done |
done |
|
|
tmp-internal-JAhtml: $(INTERNAL_SRCS) |
tmp-html-internal-ja: ${INTERNAL_SRCS} |
-rm -rf tmp-internal-JAhtml |
-rm -rf $@ |
-mkdir tmp-internal-JAhtml tmp-internal-JAhtml/int-parts tmp-internal-JAhtml/int-parts/datatype |
-mkdir -p $@/parts/builtin $@/int-parts/datatype |
-cp texinfo.* txi*tex tmp-internal-JAhtml |
-cp texinfo.* txi*tex $@ |
-for i in ${INTERNAL_SRCS}; do \ |
-for i in ${INTERNAL_SRCS}; do \ |
./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmp-internal-JAhtml/$$i; \ |
./extract_man ja $$i | nkf -e | sed -e "s/@fref/@ref/g" > $@/$$i; \ |
done |
done |
|
|
man-jp.dvi: tmpJP |
man-ja.dvi: tmp-ja |
-rm man-jp.dvi |
-(cd tmp-ja; ${PTEX} man.texi; ../jtexindex/C/texindex man.??; ${PTEX} man.texi) |
-(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi) |
-mv -f tmp-ja/man.dvi $@ |
-mv tmpJP/man.dvi man-jp.dvi |
-touch $@ |
-touch man-jp.dvi |
|
|
|
man-eg.dvi: tmpEG |
man-en.dvi: tmp-en |
-rm man-eg.dvi |
-(cd tmp-en; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi) |
-(cd tmpEG; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi) |
-(cd tmp-en; makeinfo man.texi) |
-(cd tmpEG; makeinfo man.texi) |
-mv -f tmp-en/man.dvi $@ |
-mv tmpEG/man.dvi man-eg.dvi |
-touch $@ |
-touch man-eg.dvi |
|
|
|
man-jp.pdf: man-jp.dvi |
man-ja.pdf: man-ja.dvi |
${DVIPDF} man-jp.dvi |
man-en.pdf: man-en.dvi |
|
|
man-eg.pdf: man-eg.dvi |
help-ja: tmp-ja_euc man-ja.dvi |
${DVIPDF} man-eg.dvi |
-rm -rf $@ |
|
-mkdir -p $@ |
|
-(cd tmp-ja_euc; makeinfo man.texi) |
|
-(cd $@; for i in ../tmp-ja_euc/risaman*; do ../extract_func -j $$i; done) |
|
|
help-jp: tmpJPeuc man-jp.dvi |
help-en: tmp-en man-en.dvi |
-rm -rf help-jp |
-rm -rf $@ |
-mkdir help-jp |
-mkdir -p $@ |
-(cd tmpJPeuc; makeinfo man.texi) |
-(cd $@; for i in ../tmp-en/risaman*; do ../extract_func $$i; done) |
-(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func -j $$i; done) |
|
|
|
help-eg: tmpEG man-eg.dvi |
html-ja: tmp-html-ja |
-rm -rf help-eg |
-rm -rf $@ |
-mkdir help-eg |
-mkdir -p $@ |
-(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done) |
-(cd $@; ../texi2html -menu -split_node ../tmp-html-ja/man.texi) |
|
|
html-jp: tmpJPhtml |
html-en: tmp-html-en |
-rm -rf html-jp |
-rm -rf $@ |
-mkdir html-jp |
-mkdir -p $@ |
-(cd html-jp; ../texi2html -menu -split_node ../tmpJPhtml/man.texi) |
-(cd $@; ../texi2html -menu -split_node ../tmp-html-en/man.texi) |
|
|
html-eg: tmpEGhtml |
html-win: html-ja gen_hh |
-rm -rf html-eg |
-rm -rf $@ |
-mkdir html-eg |
-mkdir -p $@ |
-(cd html-eg; ../texi2html -menu -split_node ../tmpEGhtml/man.texi) |
(cd html-ja; for i in *; do nkf -s $$i > ../$@/$$i; done) |
|
|
html-win: html-jp gen_hh |
|
-rm -rf html-win |
|
-mkdir html-win |
|
(cd html-jp; for i in *; do nkf -s $$i > ../html-win/$$i; done) |
|
gen_hh html-win html-win |
gen_hh html-win html-win |
|
|
html-win-eg: html-eg gen_hh |
html-win-en: html-en gen_hh |
-rm -rf html-win-eg |
-rm -rf $@ |
-mkdir html-win-eg |
-mkdir -p $@ |
(cd html-eg; for i in *; do nkf -s $$i > ../html-win-eg/$$i; done) |
(cd html-en; for i in *; do nkf -s $$i > ../$@/$$i; done) |
gen_hh html-win-eg html-win-eg |
gen_hh html-win-en html-win-en |
|
|
html-internal-ja: tmp-internal-JAhtml |
html-internal-ja: tmp-html-internal-ja |
-rm -rf html-internal-ja |
-rm -rf $@ |
-mkdir html-internal-ja |
-mkdir -p $@ |
-(cd html-internal-ja; ../texi2html ../tmp-internal-JAhtml/internal.texi) |
-(cd $@; ../texi2html ../tmp-html-internal-ja/internal.texi) |
|
|
html-exp-ja: exp/exp-ja.texi |
html-exp-ja: exp/exp-ja.texi |
-rm -rf html-exp-ja |
-rm -rf $@ |
-mkdir html-exp-ja |
-mkdir -p $@ |
-nkf -e <exp/exp-ja.texi >html-exp-ja/exp-ja.texi |
-nkf -e exp/exp-ja.texi > $@/exp-ja.texi |
-(cd html-exp-ja; ../texi2html -menu -split_node exp-ja.texi) |
-(cd $@; ../texi2html -menu -split_node exp-ja.texi) |
|
|
internal-jp.dvi: tmp-internal-JAhtml |
internal-ja.dvi: tmp-html-internal-ja |
-rm internal-jp.dvi |
-(cd tmp-html-internal-ja; ${PTEX} internal.texi; ../jtexindex/C/texindex internal.??; ${PTEX} internal.texi) |
-(cd tmp-internal-JAhtml; ptex internal.texi; ../jtexindex/C/texindex internal.??; ptex internal.texi) |
-mv -f tmp-html-internal-ja/internal.dvi $@ |
-mv tmp-internal-JAhtml/internal.dvi internal-jp.dvi |
-touch $@ |
-touch internal-jp.dvi |
|
extract_func: extract_func.c |
|
${CC} -o extract_func extract_func.c |
|
|
|
extract_man: extract_man.c |
extract_func: extract_func.o |
${CC} -o extract_man extract_man.c |
${CC} -o $@ extract_func.o |
|
|
|
extract_man: extract_man.o |
|
${CC} -o $@ extract_man.o |
|
|
gen_hh: html_tools/gen_hh.c |
gen_hh: html_tools/gen_hh.c |
${CC} -o gen_hh html_tools/gen_hh.c |
${CC} -o $@ html_tools/gen_hh.c |
|
|
targzuu: help-eg help-jp html-eg html-jp |
targzuu: help-en help-ja html-en html-ja |
-tar cf - help-eg | gzip -9 | uuencode help-eg.tgz > help-eg.uu |
-tar cf - help-en | gzip -9 | uuencode help-en.tgz > help-en.uu |
-tar cf - help-jp | gzip -9 | uuencode help-jp.tgz > help-jp.uu |
-tar cf - help-ja | gzip -9 | uuencode help-ja.tgz > help-ja.uu |
-tar cf - html-eg | gzip -9 | uuencode html-eg.tgz > html-eg.uu |
-tar cf - html-en | gzip -9 | uuencode html-en.tgz > html-en.uu |
-tar cf - html-jp | gzip -9 | uuencode html-jp.tgz > html-jp.uu |
-tar cf - html-ja | gzip -9 | uuencode html-ja.tgz > html-ja.uu |
|
|
clean: |
clean: |
(cd jtexindex/C; make clean) |
(cd jtexindex/C; ${MAKE} clean) |
-rm -f man*.dvi man*.pdf extract_man extract_func gen_hh .*done |
-rm -f man*.dvi man*.pdf *.o extract_man extract_func gen_hh .*done |
-rm -f internal-jp.dvi |
-rm -f internal-ja.dvi |
-rm -rf tmp* |
-rm -rf tmp* |
-rm -rf help-* |
-rm -rf help-* |
-rm -rf html-* |
-rm -rf html-* |