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

Annotation of OpenXM/doc/OpenXM-specs/Makefile, Revision 1.19

1.19    ! takayama    1: #$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.18 2003/12/10 23:22:52 takayama Exp $
1.1       noro        2: all : doc
                      3:
1.10      takayama    4: LATEX2HTML=latex2html -tmp /tmp
1.15      takayama    5: JFIX=${OpenXM_HOME}/src/util/sample1.sh
1.10      takayama    6: DVIPS=dvips -f
                      7: RSYNC=rsync -Cavz
                      8: CURRENT=/home/web/OpenXM/Current
1.11      takayama    9: NKF=nkf -e
1.10      takayama   10:
1.16      takayama   11: OXWEAVE=../../bin/oxweave
1.17      ohara      12: OXWEAVE_C=../../src/util/oxweave.c
1.2       noro       13: OXWEAVEFLAG=--recursive --plain
1.19    ! takayama   14: OXREPLACE=../../bin/oxreplace
1.6       noro       15: SRC= OpenXM.tex cmo-basic0.tex cmo-basic1.tex\
                     16: cmo-register.tex communication-model.tex control.tex\
                     17: error.tex formal-expression.tex howtowrite.tex\
                     18: implementation.tex introduction.tex library.tex\
                     19: ox-localdata.tex project.tex redefine.tex\
                     20: stackmachine.tex start-session.tex string-expression.tex
                     21:
1.9       takayama   22: SRC101=OX-RFC-101.tex
1.18      takayama   23: SRC103=OX-RFC-103.oxw
1.9       takayama   24:
                     25: doc: OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.6       noro       26:
1.8       takayama   27: OpenXM-en.dvi: $(OXWEAVE) $(SRC)
                     28:        -rm -rf tmpEN
                     29:        -mkdir tmpEN
1.9       takayama   30:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done
1.8       takayama   31:        (cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM)
                     32:        -mv tmpEN/OpenXM.dvi OpenXM-en.dvi
                     33:        touch OpenXM-en.dvi
                     34:
                     35: OpenXM-ja.dvi: $(OXWEAVE) $(SRC)
                     36:        -rm -rf tmpJA
                     37:        -mkdir tmpJA
1.11      takayama   38:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmpJA/$$i; done
1.8       takayama   39:        -(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM)
                     40:        -mv tmpJA/OpenXM.dvi OpenXM-ja.dvi
                     41:        touch OpenXM-ja.dvi
1.1       noro       42:
1.9       takayama   43: OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101)
                     44:        -rm -rf tmp101EN
                     45:        -mkdir tmp101EN
                     46:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done
                     47:        (cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101)
                     48:        -mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi
                     49:        touch OX-RFC-101-en.dvi
                     50:
                     51: OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101)
                     52:        -rm -rf tmp101JA
                     53:        -mkdir tmp101JA
1.11      takayama   54:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmp101JA/$$i; done
1.9       takayama   55:        -(cd tmp101JA;  platex OX-RFC-101; platex OX-RFC-101)
                     56:        -mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi
                     57:        touch OX-RFC-101-ja.dvi
                     58:
1.18      takayama   59: OX-RFC-103-en.dvi: $(OXWEAVE) $(SRC103)
                     60:        -rm -rf tmp103EN
                     61:        -mkdir tmp103EN
                     62:        -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C en < $$i | ${NKF} >tmp103EN/$$i; done
                     63:        -(cd tmp103EN; mv OX-RFC-103.oxw OX-RFC-103.tex)
                     64:        -(cd tmp103EN; latex OX-RFC-103; latex OX-RFC-103)
                     65:        -mv tmp103EN/OX-RFC-103.dvi OX-RFC-103-en.dvi
                     66:        touch OX-RFC-103-en.dvi
                     67: OX-RFC-103-ja.dvi: $(OXWEAVE) $(SRC103)
                     68:        -rm -rf tmp103JA
                     69:        -mkdir tmp103JA
                     70:        -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C ja < $$i | ${NKF} >tmp103JA/$$i; done
                     71:        -(cd tmp103JA; mv OX-RFC-103.oxw OX-RFC-103.tex)
                     72:        -(cd tmp103JA;  platex OX-RFC-103; platex OX-RFC-103)
                     73:        -mv tmp103JA/OX-RFC-103.dvi OX-RFC-103-ja.dvi
                     74:        touch OX-RFC-103-ja.dvi
                     75:
1.17      ohara      76: $(OXWEAVE) : $(OXWEAVE_C)
                     77:        (cd ../../src/util ; make oxweave)
1.1       noro       78:
1.13      takayama   79: all-html: all-html-ja all-html-en
1.14      takayama   80: all-html-en: doc
1.13      takayama   81:        if test ! -f .all-html-100-en.done ; \
                     82:        then \
                     83:                (cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \
1.15      takayama   84:            (cd tmpEN/OpenXM ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama   85:                touch .all-html-100-en.done ; \
                     86:        fi
                     87:        if test ! -f .all-html-101-en.done ; \
                     88:        then \
                     89:                (cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.15      takayama   90:            (cd tmp101EN/OX-RFC-101 ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama   91:                touch .all-html-101-en.done ; \
                     92:        fi
                     93:
1.14      takayama   94: all-html-ja: doc
1.10      takayama   95:        if test ! -f .all-html-100-ja.done ; \
                     96:        then \
                     97:                (cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \
1.12      takayama   98:                (cd tmpJA/OpenXM; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama   99:                touch .all-html-100-ja.done ; \
                    100:        fi
                    101:        if test ! -f .all-html-101-ja.done ; \
                    102:        then \
                    103:                (cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.12      takayama  104:                (cd tmp101JA/OX-RFC-101; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama  105:                touch .all-html-101-ja.done ; \
                    106:        fi
                    107:
                    108:
                    109: install-web-all: all-html
                    110:        if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi
                    111:        if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi
                    112:        if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi
                    113:        if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi
                    114:        if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi
                    115:        (cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en)
                    116:        (cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja)
                    117:        (cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja)
                    118:        (cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en)
                    119:        if test ! -f .install-ps-done ; then \
                    120:        (cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \
                    121:        (cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \
                    122:        touch .install-ps-done ; \
                    123:        fi
                    124:
                    125:
                    126: clean : clean-done
1.18      takayama  127:        /bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA tmp103EN tmp103JA
                    128:        /bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi OX-RFC-103-ja.dvi OX-RFC-103-en.dvi
1.10      takayama  129: clean-done:
                    130:        /bin/rm -f .[a-z]*done
1.13      takayama  131: clean-en-done:
                    132:        /bin/rm -f .[a-z]*-en.done
1.1       noro      133:

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