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

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

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

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