Annotation of OpenXM/src/asir-doc/Makefile, Revision 1.11
1.11 ! takayama 1: # $OpenXM: OpenXM/src/asir-doc/Makefile,v 1.10 2001/05/20 09:19:16 takayama Exp $
1.2 noro 2:
1.5 noro 3: WHICH=../../misc/which.pl
4:
5: all: all-eg all-jp
1.10 takayama 6: install: install-eg install-jp
1.5 noro 7:
8: all-eg: texindex extract_man extract_func man-eg.dvi help-eg html-eg
1.11 ! takayama 9: all-jp: texindex extract_man extract_func man-jp.dvi help-jp html-jp html-internal-ja
1.5 noro 10:
11: install-eg: all-eg
12: -rm -r -f ../../lib/asir/help-eg
13: -tar cf - help-eg | (cd ../../lib/asir; tar xf - )
14: -mkdir ../../doc/asir2000
15: -rm -r -f ../../doc/asir2000/html-eg
16: -tar cf - html-eg | ( cd ../../doc/asir2000; tar xf - )
17: -cp man-eg.dvi ../../doc/asir2000
18:
19: install-jp: all-jp
20: -rm -r -f ../../lib/asir/help-jp
21: -tar cf - help-jp | (cd ../../lib/asir; tar xf - )
22: -mkdir ../../doc/asir2000
23: -rm -r -f ../../doc/asir2000/html-jp
24: -tar cf - html-jp | ( cd ../../doc/asir2000; tar xf - )
25: -cp man-jp.dvi ../../doc/asir2000
1.11 ! takayama 26: -tar cf - html-internal-ja | ( cd ../../doc/asir2000; tar xf - )
1.5 noro 27:
1.10 takayama 28: install-man-pages:
29: -cp asir.1 ../../man/man1
30:
1.5 noro 31: configure:
32: (cd jtexindex/C; ./configure; make clean)
1.2 noro 33:
1.1 noro 34: texindex:
1.5 noro 35: (cd jtexindex/C; make)
36:
37: nkf:
38: (cd nkf-1.7; make)
1.1 noro 39:
40: BUILTINS=\
41: parts/builtin/array.texi parts/builtin/bit.texi\
42: parts/builtin/function.texi parts/builtin/io.texi\
43: parts/builtin/list.texi parts/builtin/misc.texi\
44: parts/builtin/num.texi parts/builtin/poly.texi\
45: parts/builtin/string.texi\
1.7 noro 46: parts/builtin/type.texi parts/builtin/upoly.texi\
47: parts/builtin/structure.texi
1.1 noro 48:
49: PARTS=\
50: parts/algnum.texi parts/appendix.texi parts/asir.texi\
51: parts/builtin.texi parts/debug.texi\
52: parts/process.texi\
53: parts/ff.texi parts/groebner.texi\
54: parts/intro.texi parts/risa.texi parts/type.texi
55:
56: SRCS=man.texi $(PARTS) $(BUILTINS)
57:
1.11 ! takayama 58: INTERNAL_SRCS=internal.texi int-parts/datatype.texi int-parts/gc.texi\
! 59: int-parts/inter.texi int-parts/intro.texi int-parts/macro.texi\
! 60: int-parts/operation.texi int-parts/parser.texi int-parts/port.texi\
! 61: int-parts/datatype/algnum.texi\
! 62: int-parts/datatype/char2ff.texi\
! 63: int-parts/datatype/dpoly.texi\
! 64: int-parts/datatype/float.texi\
! 65: int-parts/datatype/largeff.texi\
! 66: int-parts/datatype/list.texi\
! 67: int-parts/datatype/mat.texi\
! 68: int-parts/datatype/number.texi\
! 69: int-parts/datatype/poly.texi\
! 70: int-parts/datatype/ratexp.texi\
! 71: int-parts/datatype/ratnum.texi\
! 72: int-parts/datatype/risaobj.texi\
! 73: int-parts/datatype/smallff.texi\
! 74: int-parts/datatype/string.texi\
! 75: int-parts/datatype/vect.texi
! 76:
1.5 noro 77: tmpJP: $(SRCS)
1.2 noro 78: -rm -rf tmpJP
1.5 noro 79: -mkdir tmpJP tmpJP/parts tmpJP/parts/builtin
80: -cp jtexinfo.tex texinfo-js.tex tmpJP
81: -for i in ${SRCS}; do ./extract_man JP $$i > tmpJP/$$i; done
1.2 noro 82:
1.5 noro 83: tmpJPeuc: $(SRCS)
1.2 noro 84: -rm -rf tmpJPeuc
1.5 noro 85: -mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin
86: -cp jtexinfo.tex texinfo-js.tex tmpJPeuc
87: -for i in ${SRCS}; do \
88: ./extract_man JP $$i | nkf -e > tmpJPeuc/$$i; \
89: done
1.2 noro 90:
1.5 noro 91: tmpJPhtml: $(SRCS)
1.2 noro 92: -rm -rf tmpJPhtml
1.5 noro 93: -mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin
94: -cp jtexinfo.tex texinfo-js.tex tmpJPhtml
95: -for i in ${SRCS}; do \
96: ./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; \
97: done
1.2 noro 98:
1.5 noro 99: tmpEG: $(SRCS)
1.2 noro 100: -rm -rf tmpEG
1.5 noro 101: -mkdir tmpEG tmpEG/parts tmpEG/parts/builtin
102: -cp texinfo.tex tmpEG
103: -for i in ${SRCS}; do ./extract_man EG $$i > tmpEG/$$i; done
1.2 noro 104:
1.5 noro 105: tmpEGhtml: $(SRCS)
1.2 noro 106: -rm -rf tmpEGhtml
1.5 noro 107: -mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin
108: -cp texinfo.tex tmpEG
109: -for i in ${SRCS}; do \
110: ./extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i;\
111: done
1.10 takayama 112:
1.11 ! takayama 113: tmp-internal-JAhtml: $(INTERNAL_SRCS)
! 114: -rm -rf tmp-internal-JAhtml
! 115: -mkdir tmp-internal-JAhtml tmp-internal-JAhtml/int-parts tmp-internal-JAhtml/int-parts/datatype
! 116: -cp jtexinfo.tex texinfo-js.tex tmp-internal-JAhtml
! 117: -for i in ${INTERNAL_SRCS}; do \
! 118: ./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmp-internal-JAhtml/$$i; \
! 119: done
! 120:
1.5 noro 121: man-jp.dvi: tmpJP
1.2 noro 122: -rm man-jp.dvi
1.5 noro 123: -(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi)
124: -mv tmpJP/man.dvi man-jp.dvi
125: -touch man-jp.dvi
1.2 noro 126:
1.5 noro 127: man-eg.dvi: tmpEG
1.2 noro 128: -rm man-eg.dvi
1.5 noro 129: -(cd tmpEG; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi)
1.6 noro 130: -(cd tmpEG; makeinfo man.texi)
1.5 noro 131: -mv tmpEG/man.dvi man-eg.dvi
132: -touch man-eg.dvi
1.2 noro 133:
1.6 noro 134: help-jp: tmpJPeuc man-jp.dvi
1.2 noro 135: -rm -rf help-jp
1.5 noro 136: -mkdir help-jp
137: -(cd tmpJPeuc; makeinfo man.texi)
1.6 noro 138: -(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func -j $$i; done)
1.2 noro 139:
1.6 noro 140: help-eg: tmpEG man-eg.dvi
1.2 noro 141: -rm -rf help-eg
1.5 noro 142: -mkdir help-eg
143: -(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done)
1.2 noro 144:
145: html-jp: tmpJPhtml
146: -rm -rf html-jp
1.5 noro 147: -mkdir html-jp
148: -(cd html-jp; texi2html -menu -split_node ../tmpJPhtml/man.texi)
1.2 noro 149:
150: html-eg: tmpEGhtml
151: -rm -rf html-eg
1.5 noro 152: -mkdir html-eg
153: -(cd html-eg; texi2html -menu -split_node ../tmpEGhtml/man.texi)
1.1 noro 154:
1.8 noro 155: html-win: html-jp gen_hh
156: -rm -rf html-win
157: -mkdir html-win
158: (cd html-jp; for i in *; do nkf -s $$i > ../html-win/$$i; done)
159: gen_hh html-win html-win
1.9 noro 160:
161: html-win-eg: html-eg gen_hh
162: -rm -rf html-win-eg
163: -mkdir html-win-eg
164: (cd html-eg; for i in *; do nkf -s $$i > ../html-win-eg/$$i; done)
165: gen_hh html-win-eg html-win-eg
1.11 ! takayama 166:
! 167: html-internal-ja: tmp-internal-JAhtml
! 168: -rm -rf html-internal-ja
! 169: -mkdir html-internal-ja
! 170: -(cd html-internal-ja; texi2html ../tmp-internal-JAhtml/internal.texi)
1.8 noro 171:
1.1 noro 172: extract_func: extract_func.c
173: gcc -o extract_func extract_func.c
174:
1.2 noro 175: extract_man: extract_man.c
176: gcc -o extract_man extract_man.c
177:
1.8 noro 178: gen_hh: html_tools/gen_hh.c
179: gcc -o gen_hh html_tools/gen_hh.c
180:
1.4 noro 181: targzuu: help-eg help-jp html-eg html-jp
1.5 noro 182: -tar cf - help-eg | gzip -9 | uuencode help-eg.tgz > help-eg.uu
183: -tar cf - help-jp | gzip -9 | uuencode help-jp.tgz > help-jp.uu
184: -tar cf - html-eg | gzip -9 | uuencode html-eg.tgz > html-eg.uu
185: -tar cf - html-jp | gzip -9 | uuencode html-jp.tgz > html-jp.uu
1.10 takayama 186:
1.1 noro 187: clean:
188: (cd jtexindex/C; make clean)
1.8 noro 189: -rm -f man*.dvi man-jp.dvi extract_man extract_func gen_hh
1.5 noro 190: -rm -rf tmp*
191: -rm -rf help-*
192: -rm -rf html-*
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>