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