[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc

Annotation of OpenXM/src/asir-doc/Makefile, Revision 1.16

1.16    ! ohara       1: # $OpenXM: OpenXM/src/asir-doc/Makefile,v 1.15 2003/09/03 02:17:39 takayama Exp $
1.2       noro        2:
1.5       noro        3: WHICH=../../misc/which.pl
                      4:
1.15      takayama    5: all:
                      6:        if [ ! -f .make_done ]; then make all2 ; touch .make_done ; fi
                      7: install:
                      8:        if [ ! -f .install_done ] ; then make install2 ; touch .install_done ; fi
                      9:
                     10: all2: all-eg all-jp
                     11: install2: install-eg install-jp
1.5       noro       12:
                     13: all-eg: texindex extract_man extract_func man-eg.dvi help-eg html-eg
1.11      takayama   14: all-jp: texindex extract_man extract_func man-jp.dvi help-jp html-jp html-internal-ja
1.5       noro       15:
                     16: install-eg: all-eg
                     17:        -rm -r -f ../../lib/asir/help-eg
                     18:        -tar cf - help-eg | (cd ../../lib/asir; tar xf - )
                     19:        -mkdir ../../doc/asir2000
                     20:        -rm -r -f ../../doc/asir2000/html-eg
                     21:        -tar cf - html-eg | ( cd ../../doc/asir2000; tar xf - )
                     22:        -cp man-eg.dvi ../../doc/asir2000
                     23:
                     24: install-jp: all-jp
                     25:        -rm -r -f ../../lib/asir/help-jp
                     26:        -tar cf - help-jp | (cd ../../lib/asir; tar xf - )
                     27:        -mkdir ../../doc/asir2000
                     28:        -rm -r -f ../../doc/asir2000/html-jp
                     29:        -tar cf - html-jp | ( cd ../../doc/asir2000; tar xf - )
                     30:        -cp man-jp.dvi ../../doc/asir2000
1.11      takayama   31:        -tar cf - html-internal-ja | ( cd ../../doc/asir2000; tar xf - )
1.5       noro       32:
1.10      takayama   33: install-man-pages:
                     34:        -cp asir.1 ../../man/man1
                     35:
1.5       noro       36: configure:
                     37:        (cd jtexindex/C; ./configure; make clean)
1.2       noro       38:
1.1       noro       39: texindex:
1.5       noro       40:        (cd jtexindex/C; make)
                     41:
                     42: nkf:
                     43:        (cd nkf-1.7; make)
1.1       noro       44:
                     45: BUILTINS=\
                     46:        parts/builtin/array.texi parts/builtin/bit.texi\
                     47:        parts/builtin/function.texi parts/builtin/io.texi\
                     48:        parts/builtin/list.texi parts/builtin/misc.texi\
                     49:        parts/builtin/num.texi parts/builtin/poly.texi\
                     50:        parts/builtin/string.texi\
1.7       noro       51:        parts/builtin/type.texi parts/builtin/upoly.texi\
1.16    ! ohara      52:        parts/builtin/structure.texi parts/builtin/module.texi
1.1       noro       53:
                     54: PARTS=\
                     55:        parts/algnum.texi parts/appendix.texi parts/asir.texi\
                     56:        parts/builtin.texi parts/debug.texi\
                     57:        parts/process.texi\
                     58:        parts/ff.texi parts/groebner.texi\
                     59:        parts/intro.texi parts/risa.texi parts/type.texi
                     60:
                     61: SRCS=man.texi $(PARTS) $(BUILTINS)
                     62:
1.11      takayama   63: INTERNAL_SRCS=internal.texi int-parts/datatype.texi int-parts/gc.texi\
                     64:     int-parts/inter.texi int-parts/intro.texi int-parts/macro.texi\
                     65:     int-parts/operation.texi int-parts/parser.texi int-parts/port.texi\
                     66:     int-parts/datatype/algnum.texi\
                     67:     int-parts/datatype/char2ff.texi\
                     68:     int-parts/datatype/dpoly.texi\
                     69:     int-parts/datatype/float.texi\
                     70:     int-parts/datatype/largeff.texi\
                     71:     int-parts/datatype/list.texi\
                     72:     int-parts/datatype/mat.texi\
                     73:     int-parts/datatype/number.texi\
                     74:     int-parts/datatype/poly.texi\
                     75:     int-parts/datatype/ratexp.texi\
                     76:     int-parts/datatype/ratnum.texi\
                     77:     int-parts/datatype/risaobj.texi\
                     78:     int-parts/datatype/smallff.texi\
                     79:     int-parts/datatype/string.texi\
                     80:     int-parts/datatype/vect.texi
                     81:
1.5       noro       82: tmpJP: $(SRCS)
1.2       noro       83:        -rm -rf tmpJP
1.5       noro       84:        -mkdir tmpJP tmpJP/parts tmpJP/parts/builtin
1.13      noro       85:        -cp texinfo.* txi*tex tmpJP
1.5       noro       86:        -for i in ${SRCS}; do ./extract_man JP $$i > tmpJP/$$i; done
1.2       noro       87:
1.5       noro       88: tmpJPeuc: $(SRCS)
1.2       noro       89:        -rm -rf tmpJPeuc
1.5       noro       90:        -mkdir tmpJPeuc tmpJPeuc/parts tmpJPeuc/parts/builtin
1.12      noro       91:        -cp texinfo.* txi*tex tmpJPeuc
1.5       noro       92:        -for i in ${SRCS}; do \
                     93:          ./extract_man JP $$i | nkf -e > tmpJPeuc/$$i; \
                     94:        done
1.2       noro       95:
1.5       noro       96: tmpJPhtml: $(SRCS)
1.2       noro       97:        -rm -rf tmpJPhtml
1.5       noro       98:        -mkdir tmpJPhtml tmpJPhtml/parts tmpJPhtml/parts/builtin
1.12      noro       99:        -cp texinfo.* txi*tex tmpJPhtml
1.5       noro      100:        -for i in ${SRCS}; do \
                    101:          ./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmpJPhtml/$$i; \
                    102:        done
1.2       noro      103:
1.5       noro      104: tmpEG: $(SRCS)
1.2       noro      105:        -rm -rf tmpEG
1.5       noro      106:        -mkdir tmpEG tmpEG/parts tmpEG/parts/builtin
1.12      noro      107:        -cp texinfo.* txi*tex tmpEG
1.5       noro      108:        -for i in ${SRCS}; do ./extract_man EG $$i > tmpEG/$$i; done
1.2       noro      109:
1.5       noro      110: tmpEGhtml: $(SRCS)
1.2       noro      111:        -rm -rf tmpEGhtml
1.5       noro      112:        -mkdir tmpEGhtml tmpEGhtml/parts tmpEGhtml/parts/builtin
1.12      noro      113:        -cp texinfo.* txi*tex tmpEG
1.5       noro      114:        -for i in ${SRCS}; do \
                    115:                ./extract_man EG $$i | sed -e "s/@fref/@ref/g" > tmpEGhtml/$$i;\
                    116:        done
1.10      takayama  117:
1.11      takayama  118: tmp-internal-JAhtml: $(INTERNAL_SRCS)
                    119:        -rm -rf tmp-internal-JAhtml
                    120:        -mkdir tmp-internal-JAhtml tmp-internal-JAhtml/int-parts tmp-internal-JAhtml/int-parts/datatype
1.12      noro      121:        -cp texinfo.* txi*tex tmp-internal-JAhtml
1.11      takayama  122:        -for i in ${INTERNAL_SRCS}; do \
                    123:          ./extract_man JP $$i | nkf -e | sed -e "s/@fref/@ref/g" > tmp-internal-JAhtml/$$i; \
                    124:        done
                    125:
1.5       noro      126: man-jp.dvi: tmpJP
1.2       noro      127:        -rm man-jp.dvi
1.5       noro      128:        -(cd tmpJP; ptex man.texi; ../jtexindex/C/texindex man.??; ptex man.texi)
                    129:        -mv tmpJP/man.dvi man-jp.dvi
                    130:        -touch man-jp.dvi
1.2       noro      131:
1.5       noro      132: man-eg.dvi: tmpEG
1.2       noro      133:        -rm man-eg.dvi
1.5       noro      134:        -(cd tmpEG; tex man.texi; ../jtexindex/C/texindex man.??; tex man.texi)
1.6       noro      135:        -(cd tmpEG; makeinfo man.texi)
1.5       noro      136:        -mv tmpEG/man.dvi man-eg.dvi
                    137:        -touch man-eg.dvi
1.2       noro      138:
1.6       noro      139: help-jp: tmpJPeuc man-jp.dvi
1.2       noro      140:        -rm -rf help-jp
1.5       noro      141:        -mkdir help-jp
                    142:        -(cd tmpJPeuc; makeinfo man.texi)
1.6       noro      143:        -(cd help-jp; for i in ../tmpJPeuc/risaman*; do ../extract_func -j $$i; done)
1.2       noro      144:
1.6       noro      145: help-eg: tmpEG man-eg.dvi
1.2       noro      146:        -rm -rf help-eg
1.5       noro      147:        -mkdir help-eg
                    148:        -(cd help-eg; for i in ../tmpEG/risaman*; do ../extract_func $$i; done)
1.2       noro      149:
                    150: html-jp: tmpJPhtml
                    151:        -rm -rf html-jp
1.5       noro      152:        -mkdir html-jp
                    153:        -(cd html-jp; texi2html -menu -split_node ../tmpJPhtml/man.texi)
1.2       noro      154:
                    155: html-eg: tmpEGhtml
                    156:        -rm -rf html-eg
1.5       noro      157:        -mkdir html-eg
                    158:        -(cd html-eg; texi2html -menu -split_node ../tmpEGhtml/man.texi)
1.1       noro      159:
1.8       noro      160: html-win: html-jp gen_hh
                    161:        -rm -rf html-win
                    162:        -mkdir html-win
                    163:        (cd html-jp; for i in *; do nkf -s $$i > ../html-win/$$i; done)
                    164:        gen_hh html-win html-win
1.9       noro      165:
                    166: html-win-eg: html-eg gen_hh
                    167:        -rm -rf html-win-eg
                    168:        -mkdir html-win-eg
                    169:        (cd html-eg; for i in *; do nkf -s $$i > ../html-win-eg/$$i; done)
                    170:        gen_hh html-win-eg html-win-eg
1.11      takayama  171:
                    172: html-internal-ja: tmp-internal-JAhtml
                    173:        -rm -rf html-internal-ja
                    174:        -mkdir html-internal-ja
                    175:        -(cd html-internal-ja; texi2html ../tmp-internal-JAhtml/internal.texi)
1.8       noro      176:
1.14      saito     177: internal-jp.dvi: tmp-internal-JAhtml
                    178:        -rm internal-jp.dvi
                    179:        -(cd tmp-internal-JAhtml; ptex internal.texi; ../jtexindex/C/texindex internal.??; ptex internal.texi)
                    180:        -mv tmp-internal-JAhtml/internal.dvi internal-jp.dvi
                    181:        -touch internal-jp.dvi
1.1       noro      182: extract_func: extract_func.c
                    183:        gcc -o extract_func extract_func.c
                    184:
1.2       noro      185: extract_man: extract_man.c
                    186:        gcc -o extract_man extract_man.c
                    187:
1.8       noro      188: gen_hh: html_tools/gen_hh.c
                    189:        gcc -o gen_hh html_tools/gen_hh.c
                    190:
1.4       noro      191: targzuu: help-eg help-jp html-eg html-jp
1.5       noro      192:        -tar cf - help-eg | gzip -9 | uuencode help-eg.tgz > help-eg.uu
                    193:        -tar cf - help-jp | gzip -9 | uuencode help-jp.tgz > help-jp.uu
                    194:        -tar cf - html-eg | gzip -9 | uuencode html-eg.tgz > html-eg.uu
                    195:        -tar cf - html-jp | gzip -9 | uuencode html-jp.tgz > html-jp.uu
1.10      takayama  196:
1.1       noro      197: clean:
                    198:        (cd jtexindex/C; make clean)
1.15      takayama  199:        -rm -f man*.dvi man-jp.dvi extract_man extract_func gen_hh .*done
1.14      saito     200:        -rm -f internal-jp.dvi
1.5       noro      201:        -rm -rf tmp*
                    202:        -rm -rf help-*
                    203:        -rm -rf html-*

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>