Annotation of OpenXM/src/asir-doc/Makefile.in, Revision 1.15
1.15 ! noro 1: # $OpenXM: OpenXM/src/asir-doc/Makefile.in,v 1.14 2020/08/27 23:34:32 takayama 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.11 takayama 7: TEX=@TEX@
1.5 takayama 8: PTEX=@PTEX@
1.14 takayama 9: MAKEINFO=@MAKEINFO@ --force
1.7 ohara 10: LANGUAGES = en ja
11: INSTALL = cp -f
1.11 takayama 12: TEXI2HTML = texi2html
1.7 ohara 13:
14: .SUFFIXES: .dvi .pdf
15:
16: .dvi.pdf:
1.11 takayama 17: @echo "xetex has already generated PDF files"
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.15 ! noro 89: tmp-ja tmp-ja_euc 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
1.11 takayama 97: -cp texinfo*.* txi*tex $@
98: -for i in ${SRCS}; do ./extract_man ja $$i | nkf -w > $@/$$i; done
1.6 ohara 99:
1.15 ! noro 100: tmp-ja_euc: ${SRCS}
! 101: -rm -rf $@
! 102: -mkdir -p $@/parts/builtin
! 103: -cp texinfo*.* txi*tex $@
! 104: -for i in ${SRCS}; do ./extract_man ja $$i | nkf -e > $@/$$i; done
! 105:
1.10 takayama 106: tmp-ja_utf8: ${SRCS}
1.7 ohara 107: -rm -rf $@
108: -mkdir -p $@/parts/builtin
1.11 takayama 109: -cp texinfo*.* txi*tex $@
1.10 takayama 110: -for i in ${SRCS}; do ./extract_man ja $$i | nkf -w > $@/$$i; done
1.1 takayama 111:
1.6 ohara 112: tmp-html-ja: ${SRCS}
1.7 ohara 113: -rm -rf $@
114: -mkdir -p $@/parts/builtin
1.11 takayama 115: -cp texinfo*.* txi*tex $@
1.1 takayama 116: -for i in ${SRCS}; do \
1.10 takayama 117: ./extract_man ja $$i | nkf -w | sed -e "s/@fref/@ref/g" > $@/$$i; \
1.1 takayama 118: done
119:
1.6 ohara 120: tmp-en: ${SRCS}
1.7 ohara 121: -rm -rf $@
122: -mkdir -p $@/parts/builtin
1.11 takayama 123: -cp texinfo*.* txi*tex $@
1.7 ohara 124: -for i in ${SRCS}; do ./extract_man en $$i > $@/$$i; done
1.6 ohara 125:
126: tmp-html-en: ${SRCS}
1.7 ohara 127: -rm -rf $@
128: -mkdir -p $@/parts/builtin
1.11 takayama 129: -cp texinfo*.* txi*tex $@
1.1 takayama 130: -for i in ${SRCS}; do \
1.7 ohara 131: ./extract_man en $$i | sed -e "s/@fref/@ref/g" > $@/$$i;\
1.1 takayama 132: done
133:
1.6 ohara 134: tmp-html-internal-ja: ${INTERNAL_SRCS}
1.7 ohara 135: -rm -rf $@
136: -mkdir -p $@/parts/builtin $@/int-parts/datatype
1.11 takayama 137: -cp texinfo*.* txi*tex $@
1.1 takayama 138: -for i in ${INTERNAL_SRCS}; do \
1.10 takayama 139: ./extract_man ja $$i | nkf -w | sed -e "s/@fref/@ref/g" > $@/$$i; \
1.1 takayama 140: done
141:
1.6 ohara 142: man-ja.dvi: tmp-ja
143: -(cd tmp-ja; ${PTEX} man.texi; ../jtexindex/C/texindex man.??; ${PTEX} man.texi)
1.7 ohara 144: -mv -f tmp-ja/man.dvi $@
145: -touch $@
1.6 ohara 146:
147: man-en.dvi: tmp-en
1.8 ohara 148: -(cd tmp-en; ${TEX} man.texi; ../jtexindex/C/texindex man.??; ${TEX} man.texi)
149: -(cd tmp-en; ${MAKEINFO} man.texi)
1.7 ohara 150: -mv -f tmp-en/man.dvi $@
151: -touch $@
1.6 ohara 152:
1.8 ohara 153: man: man-ja.pdf man-en.pdf
1.6 ohara 154:
1.15 ! noro 155: help-ja: tmp-ja_euc man-ja.dvi
1.7 ohara 156: -rm -rf $@
157: -mkdir -p $@
1.15 ! noro 158: -(cd tmp-ja_euc; ${MAKEINFO} man.texi)
! 159: -(cd $@; for i in ../tmp-ja_euc/risaman*; do ../extract_func -j $$i; done)
1.6 ohara 160:
161: help-en: tmp-en man-en.dvi
1.7 ohara 162: -rm -rf $@
163: -mkdir -p $@
164: -(cd $@; for i in ../tmp-en/risaman*; do ../extract_func $$i; done)
1.6 ohara 165:
166: html-ja: tmp-html-ja
1.7 ohara 167: -rm -rf $@
168: -mkdir -p $@
1.13 takayama 169: -(cd $@; ln -s ../texi2html.perl . ; ../texi2html -menu -split_node ../tmp-html-ja/man.texi)
1.6 ohara 170:
171: html-en: tmp-html-en
1.7 ohara 172: -rm -rf $@
173: -mkdir -p $@
1.13 takayama 174: -(cd $@; ln -s ../texi2html.perl . ;../texi2html -menu -split_node ../tmp-html-en/man.texi)
1.1 takayama 175:
1.6 ohara 176: html-win: html-ja gen_hh
1.7 ohara 177: -rm -rf $@
178: -mkdir -p $@
179: (cd html-ja; for i in *; do nkf -s $$i > ../$@/$$i; done)
1.1 takayama 180: gen_hh html-win html-win
181:
1.6 ohara 182: html-win-en: html-en gen_hh
1.7 ohara 183: -rm -rf $@
184: -mkdir -p $@
185: (cd html-en; for i in *; do nkf -s $$i > ../$@/$$i; done)
1.6 ohara 186: gen_hh html-win-en html-win-en
1.1 takayama 187:
1.6 ohara 188: html-internal-ja: tmp-html-internal-ja
1.7 ohara 189: -rm -rf $@
190: -mkdir -p $@
1.13 takayama 191: -(cd $@; ln -s ../texi2html.perl . ; ../${TEXI2HTML} ../tmp-html-internal-ja/internal.texi)
1.1 takayama 192:
193: html-exp-ja: exp/exp-ja.texi
1.7 ohara 194: -rm -rf $@
195: -mkdir -p $@
1.10 takayama 196: -nkf -w exp/exp-ja.texi > $@/exp-ja.texi
1.13 takayama 197: -(cd $@; ln -s ../texi2html.perl . ; ../${TEXI2HTML} -expandinfo -menu -split_node exp-ja.texi)
1.1 takayama 198:
1.6 ohara 199: internal-ja.dvi: tmp-html-internal-ja
200: -(cd tmp-html-internal-ja; ${PTEX} internal.texi; ../jtexindex/C/texindex internal.??; ${PTEX} internal.texi)
1.7 ohara 201: -mv -f tmp-html-internal-ja/internal.dvi $@
202: -touch $@
1.6 ohara 203:
1.7 ohara 204: extract_func: extract_func.o
205: ${CC} -o $@ extract_func.o
1.1 takayama 206:
1.7 ohara 207: extract_man: extract_man.o
208: ${CC} -o $@ extract_man.o
1.1 takayama 209:
210: gen_hh: html_tools/gen_hh.c
1.7 ohara 211: ${CC} -o $@ html_tools/gen_hh.c
1.1 takayama 212:
1.6 ohara 213: targzuu: help-en help-ja html-en html-ja
214: -tar cf - help-en | gzip -9 | uuencode help-en.tgz > help-en.uu
215: -tar cf - help-ja | gzip -9 | uuencode help-ja.tgz > help-ja.uu
216: -tar cf - html-en | gzip -9 | uuencode html-en.tgz > html-en.uu
217: -tar cf - html-ja | gzip -9 | uuencode html-ja.tgz > html-ja.uu
1.1 takayama 218:
219: clean:
1.12 takayama 220: -(cd jtexindex/C; ${MAKE} clean)
1.8 ohara 221: -rm -f man*.dvi man*.pdf *.o extract_man extract_func gen_hh
1.6 ohara 222: -rm -f internal-ja.dvi
1.1 takayama 223: -rm -rf tmp*
224: -rm -rf help-*
225: -rm -rf html-*
1.8 ohara 226:
227: distclean: clean
228: -rm -rf autom4te.cache config.log config.status Makefile
229: -rm -f .configure*_done .make_done .install_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>