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