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