Annotation of OpenXM/src/asir-doc/Makefile, Revision 1.10
1.10 ! takayama 1: # $OpenXM: OpenXM/src/asir-doc/Makefile,v 1.9 2001/04/23 05:45:34 noro 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
9: all-jp: texindex extract_man extract_func man-jp.dvi help-jp html-jp
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
26:
1.10 ! takayama 27: install-man-pages:
! 28: -cp asir.1 ../../man/man1
! 29:
1.5 noro 30: configure:
31: (cd jtexindex/C; ./configure; make clean)
1.2 noro 32:
1.1 noro 33: texindex:
1.5 noro 34: (cd jtexindex/C; make)
35:
36: nkf:
37: (cd nkf-1.7; make)
1.1 noro 38:
39: BUILTINS=\
40: parts/builtin/array.texi parts/builtin/bit.texi\
41: parts/builtin/function.texi parts/builtin/io.texi\
42: parts/builtin/list.texi parts/builtin/misc.texi\
43: parts/builtin/num.texi parts/builtin/poly.texi\
44: parts/builtin/string.texi\
1.7 noro 45: parts/builtin/type.texi parts/builtin/upoly.texi\
46: parts/builtin/structure.texi
1.1 noro 47:
48: PARTS=\
49: parts/algnum.texi parts/appendix.texi parts/asir.texi\
50: parts/builtin.texi parts/debug.texi\
51: parts/process.texi\
52: parts/ff.texi parts/groebner.texi\
53: parts/intro.texi parts/risa.texi parts/type.texi
54:
55: SRCS=man.texi $(PARTS) $(BUILTINS)
56:
1.5 noro 57: tmpJP: $(SRCS)
1.2 noro 58: -rm -rf tmpJP
1.5 noro 59: -mkdir tmpJP tmpJP/parts tmpJP/parts/builtin
60: -cp jtexinfo.tex texinfo-js.tex tmpJP
61: -for i in ${SRCS}; do ./extract_man JP $$i > tmpJP/$$i; done
1.2 noro 62:
1.5 noro 63: tmpJPeuc: $(SRCS)
1.2 noro 64: -rm -rf tmpJPeuc
1.5 noro 65: -mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin
66: -cp jtexinfo.tex texinfo-js.tex tmpJPeuc
67: -for i in ${SRCS}; do \
68: ./extract_man JP $$i | nkf -e > tmpJPeuc/$$i; \
69: done
1.2 noro 70:
1.5 noro 71: tmpJPhtml: $(SRCS)
1.2 noro 72: -rm -rf tmpJPhtml
1.5 noro 73: -mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin
74: -cp jtexinfo.tex texinfo-js.tex tmpJPhtml
75: -for i in ${SRCS}; do \
76: ./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; \
77: done
1.2 noro 78:
1.5 noro 79: tmpEG: $(SRCS)
1.2 noro 80: -rm -rf tmpEG
1.5 noro 81: -mkdir tmpEG tmpEG/parts tmpEG/parts/builtin
82: -cp texinfo.tex tmpEG
83: -for i in ${SRCS}; do ./extract_man EG $$i > tmpEG/$$i; done
1.2 noro 84:
1.5 noro 85: tmpEGhtml: $(SRCS)
1.2 noro 86: -rm -rf tmpEGhtml
1.5 noro 87: -mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin
88: -cp texinfo.tex tmpEG
89: -for i in ${SRCS}; do \
90: ./extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i;\
91: done
1.10 ! takayama 92:
1.5 noro 93: man-jp.dvi: tmpJP
1.2 noro 94: -rm man-jp.dvi
1.5 noro 95: -(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi)
96: -mv tmpJP/man.dvi man-jp.dvi
97: -touch man-jp.dvi
1.2 noro 98:
1.5 noro 99: man-eg.dvi: tmpEG
1.2 noro 100: -rm man-eg.dvi
1.5 noro 101: -(cd tmpEG; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi)
1.6 noro 102: -(cd tmpEG; makeinfo man.texi)
1.5 noro 103: -mv tmpEG/man.dvi man-eg.dvi
104: -touch man-eg.dvi
1.2 noro 105:
1.6 noro 106: help-jp: tmpJPeuc man-jp.dvi
1.2 noro 107: -rm -rf help-jp
1.5 noro 108: -mkdir help-jp
109: -(cd tmpJPeuc; makeinfo man.texi)
1.6 noro 110: -(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func -j $$i; done)
1.2 noro 111:
1.6 noro 112: help-eg: tmpEG man-eg.dvi
1.2 noro 113: -rm -rf help-eg
1.5 noro 114: -mkdir help-eg
115: -(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done)
1.2 noro 116:
117: html-jp: tmpJPhtml
118: -rm -rf html-jp
1.5 noro 119: -mkdir html-jp
120: -(cd html-jp; texi2html -menu -split_node ../tmpJPhtml/man.texi)
1.2 noro 121:
122: html-eg: tmpEGhtml
123: -rm -rf html-eg
1.5 noro 124: -mkdir html-eg
125: -(cd html-eg; texi2html -menu -split_node ../tmpEGhtml/man.texi)
1.1 noro 126:
1.8 noro 127: html-win: html-jp gen_hh
128: -rm -rf html-win
129: -mkdir html-win
130: (cd html-jp; for i in *; do nkf -s $$i > ../html-win/$$i; done)
131: gen_hh html-win html-win
1.9 noro 132:
133: html-win-eg: html-eg gen_hh
134: -rm -rf html-win-eg
135: -mkdir html-win-eg
136: (cd html-eg; for i in *; do nkf -s $$i > ../html-win-eg/$$i; done)
137: gen_hh html-win-eg html-win-eg
1.8 noro 138:
1.1 noro 139: extract_func: extract_func.c
140: gcc -o extract_func extract_func.c
141:
1.2 noro 142: extract_man: extract_man.c
143: gcc -o extract_man extract_man.c
144:
1.8 noro 145: gen_hh: html_tools/gen_hh.c
146: gcc -o gen_hh html_tools/gen_hh.c
147:
1.4 noro 148: targzuu: help-eg help-jp html-eg html-jp
1.5 noro 149: -tar cf - help-eg | gzip -9 | uuencode help-eg.tgz > help-eg.uu
150: -tar cf - help-jp | gzip -9 | uuencode help-jp.tgz > help-jp.uu
151: -tar cf - html-eg | gzip -9 | uuencode html-eg.tgz > html-eg.uu
152: -tar cf - html-jp | gzip -9 | uuencode html-jp.tgz > html-jp.uu
1.10 ! takayama 153:
1.1 noro 154: clean:
155: (cd jtexindex/C; make clean)
1.8 noro 156: -rm -f man*.dvi man-jp.dvi extract_man extract_func gen_hh
1.5 noro 157: -rm -rf tmp*
158: -rm -rf help-*
159: -rm -rf html-*
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>