version 1.2, 1999/12/21 02:47:29 |
version 1.10, 2001/05/20 09:19:16 |
|
|
# $OpenXM: OpenXM/src/asir-doc/Makefile,v 1.1.1.1 1999/12/08 05:47:43 noro Exp $ |
# $OpenXM: OpenXM/src/asir-doc/Makefile,v 1.9 2001/04/23 05:45:34 noro Exp $ |
|
|
all-eg: texindex man-eg.dvi help-eg html-eg |
WHICH=../../misc/which.pl |
all-jp: texindex man-jp.dvi help-jp html-jp |
|
|
|
|
all: all-eg all-jp |
|
install: install-eg install-jp |
|
|
|
all-eg: texindex extract_man extract_func man-eg.dvi help-eg html-eg |
|
all-jp: texindex extract_man extract_func man-jp.dvi help-jp html-jp |
|
|
|
install-eg: all-eg |
|
-rm -r -f ../../lib/asir/help-eg |
|
-tar cf - help-eg | (cd ../../lib/asir; tar xf - ) |
|
-mkdir ../../doc/asir2000 |
|
-rm -r -f ../../doc/asir2000/html-eg |
|
-tar cf - html-eg | ( cd ../../doc/asir2000; tar xf - ) |
|
-cp man-eg.dvi ../../doc/asir2000 |
|
|
|
install-jp: all-jp |
|
-rm -r -f ../../lib/asir/help-jp |
|
-tar cf - help-jp | (cd ../../lib/asir; tar xf - ) |
|
-mkdir ../../doc/asir2000 |
|
-rm -r -f ../../doc/asir2000/html-jp |
|
-tar cf - html-jp | ( cd ../../doc/asir2000; tar xf - ) |
|
-cp man-jp.dvi ../../doc/asir2000 |
|
|
|
install-man-pages: |
|
-cp asir.1 ../../man/man1 |
|
|
|
configure: |
|
(cd jtexindex/C; ./configure; make clean) |
|
|
texindex: |
texindex: |
(cd jtexindex/C; ./configure; make) |
(cd jtexindex/C; make) |
|
|
|
nkf: |
|
(cd nkf-1.7; make) |
|
|
BUILTINS=\ |
BUILTINS=\ |
parts/builtin/array.texi parts/builtin/bit.texi\ |
parts/builtin/array.texi parts/builtin/bit.texi\ |
parts/builtin/function.texi parts/builtin/io.texi\ |
parts/builtin/function.texi parts/builtin/io.texi\ |
parts/builtin/list.texi parts/builtin/misc.texi\ |
parts/builtin/list.texi parts/builtin/misc.texi\ |
parts/builtin/num.texi parts/builtin/poly.texi\ |
parts/builtin/num.texi parts/builtin/poly.texi\ |
parts/builtin/string.texi\ |
parts/builtin/string.texi\ |
parts/builtin/type.texi parts/builtin/upoly.texi |
parts/builtin/type.texi parts/builtin/upoly.texi\ |
|
parts/builtin/structure.texi |
|
|
PARTS=\ |
PARTS=\ |
parts/algnum.texi parts/appendix.texi parts/asir.texi\ |
parts/algnum.texi parts/appendix.texi parts/asir.texi\ |
|
|
|
|
SRCS=man.texi $(PARTS) $(BUILTINS) |
SRCS=man.texi $(PARTS) $(BUILTINS) |
|
|
tmpJP: $(SRCS) extract_man |
tmpJP: $(SRCS) |
-rm -rf tmpJP |
-rm -rf tmpJP |
mkdir tmpJP tmpJP/parts tmpJP/parts/builtin |
-mkdir tmpJP tmpJP/parts tmpJP/parts/builtin |
cp jtexinfo.tex texinfo-js.tex tmpJP |
-cp jtexinfo.tex texinfo-js.tex tmpJP |
for i in ${SRCS}; do extract_man JP $$i > tmpJP/$$i; done |
-for i in ${SRCS}; do ./extract_man JP $$i > tmpJP/$$i; done |
|
|
tmpJPeuc: $(SRCS) extract_man |
tmpJPeuc: $(SRCS) |
-rm -rf tmpJPeuc |
-rm -rf tmpJPeuc |
mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin |
-mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin |
cp jtexinfo.tex texinfo-js.tex tmpJPeuc |
-cp jtexinfo.tex texinfo-js.tex tmpJPeuc |
for i in ${SRCS}; do extract_man JP $$i | nkf -e > tmpJPeuc/$$i; done |
-for i in ${SRCS}; do \ |
|
./extract_man JP $$i | nkf -e > tmpJPeuc/$$i; \ |
|
done |
|
|
tmpJPhtml: $(SRCS) extract_man |
tmpJPhtml: $(SRCS) |
-rm -rf tmpJPhtml |
-rm -rf tmpJPhtml |
mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin |
-mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin |
cp jtexinfo.tex texinfo-js.tex tmpJPhtml |
-cp jtexinfo.tex texinfo-js.tex tmpJPhtml |
for i in ${SRCS}; do extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; done |
-for i in ${SRCS}; do \ |
|
./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; \ |
|
done |
|
|
tmpEG: $(SRCS) extract_man |
tmpEG: $(SRCS) |
-rm -rf tmpEG |
-rm -rf tmpEG |
mkdir tmpEG tmpEG/parts tmpEG/parts/builtin |
-mkdir tmpEG tmpEG/parts tmpEG/parts/builtin |
cp texinfo.tex tmpEG |
-cp texinfo.tex tmpEG |
for i in ${SRCS}; do extract_man EG $$i > tmpEG/$$i; done |
-for i in ${SRCS}; do ./extract_man EG $$i > tmpEG/$$i; done |
|
|
tmpEGhtml: $(SRCS) extract_man |
tmpEGhtml: $(SRCS) |
-rm -rf tmpEGhtml |
-rm -rf tmpEGhtml |
mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin |
-mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin |
cp texinfo.tex tmpEG |
-cp texinfo.tex tmpEG |
for i in ${SRCS}; do extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i; done |
-for i in ${SRCS}; do \ |
|
./extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i;\ |
man-jp.dvi: tmpJP texindex |
done |
|
|
|
man-jp.dvi: tmpJP |
-rm man-jp.dvi |
-rm man-jp.dvi |
(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi) |
-(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi) |
mv tmpJP/man.dvi man-jp.dvi |
-mv tmpJP/man.dvi man-jp.dvi |
|
-touch man-jp.dvi |
|
|
man-eg.dvi: tmpEG texindex |
man-eg.dvi: tmpEG |
-rm man-eg.dvi |
-rm man-eg.dvi |
(cd tmpEG; ptex man.texi; ../jtexindex/C/texindex man.??; tex man.texi) |
-(cd tmpEG; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi) |
mv tmpEG/man.dvi man-eg.dvi |
-(cd tmpEG; makeinfo man.texi) |
|
-mv tmpEG/man.dvi man-eg.dvi |
|
-touch man-eg.dvi |
|
|
help-jp: tmpJPeuc extract_func |
help-jp: tmpJPeuc man-jp.dvi |
-rm -rf help-jp |
-rm -rf help-jp |
mkdir help-jp |
-mkdir help-jp |
(cd tmpJPeuc; makeinfo man.texi) |
-(cd tmpJPeuc; makeinfo man.texi) |
(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func $$i; done) |
-(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func -j $$i; done) |
|
|
help-eg: tmpEG extract_func |
help-eg: tmpEG man-eg.dvi |
-rm -rf help-eg |
-rm -rf help-eg |
mkdir help-eg |
-mkdir help-eg |
(cd tmpEG; makeinfo man.texi) |
-(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done) |
(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done) |
|
|
|
html-jp: tmpJPhtml |
html-jp: tmpJPhtml |
-rm -rf html-jp |
-rm -rf html-jp |
mkdir html-jp |
-mkdir html-jp |
(cd html-jp; texi2html -menu -split_node ../tmpJPhtml/man.texi) |
-(cd html-jp; texi2html -menu -split_node ../tmpJPhtml/man.texi) |
|
|
html-eg: tmpEGhtml |
html-eg: tmpEGhtml |
-rm -rf html-eg |
-rm -rf html-eg |
mkdir html-eg |
-mkdir html-eg |
(cd html-eg; texi2html -menu -split_node ../tmpEGhtml/man.texi) |
-(cd html-eg; texi2html -menu -split_node ../tmpEGhtml/man.texi) |
|
|
|
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 |
|
|
|
html-win-eg: html-eg gen_hh |
|
-rm -rf html-win-eg |
|
-mkdir html-win-eg |
|
(cd html-eg; for i in *; do nkf -s $$i > ../html-win-eg/$$i; done) |
|
gen_hh html-win-eg html-win-eg |
|
|
extract_func: extract_func.c |
extract_func: extract_func.c |
gcc -o extract_func extract_func.c |
gcc -o extract_func extract_func.c |
|
|
extract_man: extract_man.c |
extract_man: extract_man.c |
gcc -o extract_man extract_man.c |
gcc -o extract_man extract_man.c |
|
|
|
gen_hh: html_tools/gen_hh.c |
|
gcc -o gen_hh html_tools/gen_hh.c |
|
|
|
targzuu: help-eg help-jp html-eg html-jp |
|
-tar cf - help-eg | gzip -9 | uuencode help-eg.tgz > help-eg.uu |
|
-tar cf - help-jp | gzip -9 | uuencode help-jp.tgz > help-jp.uu |
|
-tar cf - html-eg | gzip -9 | uuencode html-eg.tgz > html-eg.uu |
|
-tar cf - html-jp | gzip -9 | uuencode html-jp.tgz > html-jp.uu |
|
|
clean: |
clean: |
(cd jtexindex/C; make clean) |
(cd jtexindex/C; make clean) |
rm -f man*.dvi man-jp.dvi extract_man extract_func |
-rm -f man*.dvi man-jp.dvi extract_man extract_func gen_hh |
rm -rf tmp* |
-rm -rf tmp* |
rm -rf help-* |
-rm -rf help-* |
rm -rf html-* |
-rm -rf html-* |