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

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

1.22    ! takayama    1: #$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.21 2016/08/22 08:36:49 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.22    ! takayama    9: NKF=nkf -w
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.21      takayama   30:        -cp html.sty tmpEN
1.9       takayama   31:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done
1.8       takayama   32:        (cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM)
                     33:        -mv tmpEN/OpenXM.dvi OpenXM-en.dvi
                     34:        touch OpenXM-en.dvi
                     35:
                     36: OpenXM-ja.dvi: $(OXWEAVE) $(SRC)
                     37:        -rm -rf tmpJA
                     38:        -mkdir tmpJA
1.21      takayama   39:        -cp html.sty tmpJA
1.11      takayama   40:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmpJA/$$i; done
1.8       takayama   41:        -(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM)
                     42:        -mv tmpJA/OpenXM.dvi OpenXM-ja.dvi
                     43:        touch OpenXM-ja.dvi
1.1       noro       44:
1.9       takayama   45: OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101)
                     46:        -rm -rf tmp101EN
                     47:        -mkdir tmp101EN
1.21      takayama   48:        -cp html.sty tmp101EN
1.9       takayama   49:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done
                     50:        (cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101)
                     51:        -mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi
                     52:        touch OX-RFC-101-en.dvi
                     53:
                     54: OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101)
                     55:        -rm -rf tmp101JA
                     56:        -mkdir tmp101JA
1.21      takayama   57:        -cp html.sty tmp101JA
1.11      takayama   58:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmp101JA/$$i; done
1.9       takayama   59:        -(cd tmp101JA;  platex OX-RFC-101; platex OX-RFC-101)
                     60:        -mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi
                     61:        touch OX-RFC-101-ja.dvi
                     62:
1.20      takayama   63: OX-RFC-103-en.txt: $(OXWEAVE) $(SRC103)
1.18      takayama   64:        -rm -rf tmp103EN
                     65:        -mkdir tmp103EN
1.21      takayama   66:        -cp html.sty tmp103EN
1.18      takayama   67:        -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C en < $$i | ${NKF} >tmp103EN/$$i; done
1.20      takayama   68:        -(cd tmp103EN; mv OX-RFC-103.oxw OX-RFC-103.txt)
                     69:        -mv tmp103JA/OX-RFC-103.txt OX-RFC-103-en.txt
                     70: OX-RFC-103-ja.txt: $(OXWEAVE) $(SRC103)
1.18      takayama   71:        -rm -rf tmp103JA
                     72:        -mkdir tmp103JA
1.21      takayama   73:        -cp html.sty tmp103JA
1.18      takayama   74:        -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C ja < $$i | ${NKF} >tmp103JA/$$i; done
1.20      takayama   75:        -(cd tmp103JA; mv OX-RFC-103.oxw OX-RFC-103.txt)
                     76:        -mv tmp103JA/OX-RFC-103.txt OX-RFC-103-ja.txt
                     77: ox-rfc-104-ja.txt:  ox-rfc-104.oxw
                     78:        echo "% DO NOT EDIT THIS FILE" >ox-rfc-104-ja.txt
                     79:        $(OXWEAVE) $(OXWEAVEFLAG) C ja < ox-rfc-104.oxw >>ox-rfc-104-ja.txt
                     80: ox-rfc-103-en.txt: OX-RFC-103.oxw
                     81:        echo "% DO NOT EDIT THIS FILE" >ox-rfc-103-en.txt
                     82:        $(OXWEAVE) $(OXWEAVEFLAG) C en < OX-RFC-103.oxw >>ox-rfc-103-en.txt
                     83: ox-rfc-104-en.txt:  ox-rfc-104.oxw
                     84:        echo "% DO NOT EDIT THIS FILE" >ox-rfc-104-en.txt
                     85:        $(OXWEAVE) $(OXWEAVEFLAG) C en < ox-rfc-104.oxw >>ox-rfc-104-en.txt
                     86:
1.18      takayama   87:
1.17      ohara      88: $(OXWEAVE) : $(OXWEAVE_C)
                     89:        (cd ../../src/util ; make oxweave)
1.1       noro       90:
1.13      takayama   91: all-html: all-html-ja all-html-en
1.14      takayama   92: all-html-en: doc
1.13      takayama   93:        if test ! -f .all-html-100-en.done ; \
                     94:        then \
                     95:                (cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \
1.15      takayama   96:            (cd tmpEN/OpenXM ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama   97:                touch .all-html-100-en.done ; \
                     98:        fi
                     99:        if test ! -f .all-html-101-en.done ; \
                    100:        then \
                    101:                (cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.15      takayama  102:            (cd tmp101EN/OX-RFC-101 ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama  103:                touch .all-html-101-en.done ; \
                    104:        fi
                    105:
1.14      takayama  106: all-html-ja: doc
1.10      takayama  107:        if test ! -f .all-html-100-ja.done ; \
                    108:        then \
                    109:                (cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \
1.12      takayama  110:                (cd tmpJA/OpenXM; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama  111:                touch .all-html-100-ja.done ; \
                    112:        fi
                    113:        if test ! -f .all-html-101-ja.done ; \
                    114:        then \
                    115:                (cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.12      takayama  116:                (cd tmp101JA/OX-RFC-101; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama  117:                touch .all-html-101-ja.done ; \
                    118:        fi
                    119:
                    120:
                    121: install-web-all: all-html
                    122:        if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi
                    123:        if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi
                    124:        if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi
                    125:        if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi
                    126:        if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi
                    127:        (cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en)
                    128:        (cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja)
                    129:        (cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja)
                    130:        (cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en)
                    131:        if test ! -f .install-ps-done ; then \
                    132:        (cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \
                    133:        (cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \
                    134:        touch .install-ps-done ; \
                    135:        fi
                    136:
                    137:
                    138: clean : clean-done
1.18      takayama  139:        /bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA tmp103EN tmp103JA
1.20      takayama  140:        /bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi OX-RFC-103-ja.txt OX-RFC-103-en.txt ox-rfc-104-ja.txt ox-rfc-104-en.txt
1.10      takayama  141: clean-done:
                    142:        /bin/rm -f .[a-z]*done
1.13      takayama  143: clean-en-done:
                    144:        /bin/rm -f .[a-z]*-en.done
1.1       noro      145:

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