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