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

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

1.17    ! ohara       1: #$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.16 2003/08/22 23:56:27 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.11      takayama   14: OXREPLACE=../../src/util/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
                     23:
                     24: doc: OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.6       noro       25:
1.8       takayama   26: OpenXM-en.dvi: $(OXWEAVE) $(SRC)
                     27:        -rm -rf tmpEN
                     28:        -mkdir tmpEN
1.9       takayama   29:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done
1.8       takayama   30:        (cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM)
                     31:        -mv tmpEN/OpenXM.dvi OpenXM-en.dvi
                     32:        touch OpenXM-en.dvi
                     33:
                     34: OpenXM-ja.dvi: $(OXWEAVE) $(SRC)
                     35:        -rm -rf tmpJA
                     36:        -mkdir tmpJA
1.11      takayama   37:        -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmpJA/$$i; done
1.8       takayama   38:        -(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM)
                     39:        -mv tmpJA/OpenXM.dvi OpenXM-ja.dvi
                     40:        touch OpenXM-ja.dvi
1.1       noro       41:
1.9       takayama   42: OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101)
                     43:        -rm -rf tmp101EN
                     44:        -mkdir tmp101EN
                     45:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done
                     46:        (cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101)
                     47:        -mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi
                     48:        touch OX-RFC-101-en.dvi
                     49:
                     50: OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101)
                     51:        -rm -rf tmp101JA
                     52:        -mkdir tmp101JA
1.11      takayama   53:        -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmp101JA/$$i; done
1.9       takayama   54:        -(cd tmp101JA;  platex OX-RFC-101; platex OX-RFC-101)
                     55:        -mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi
                     56:        touch OX-RFC-101-ja.dvi
                     57:
1.17    ! ohara      58: $(OXWEAVE) : $(OXWEAVE_C)
        !            59:        (cd ../../src/util ; make oxweave)
1.1       noro       60:
1.13      takayama   61: all-html: all-html-ja all-html-en
1.14      takayama   62: all-html-en: doc
1.13      takayama   63:        if test ! -f .all-html-100-en.done ; \
                     64:        then \
                     65:                (cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \
1.15      takayama   66:            (cd tmpEN/OpenXM ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama   67:                touch .all-html-100-en.done ; \
                     68:        fi
                     69:        if test ! -f .all-html-101-en.done ; \
                     70:        then \
                     71:                (cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.15      takayama   72:            (cd tmp101EN/OX-RFC-101 ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13      takayama   73:                touch .all-html-101-en.done ; \
                     74:        fi
                     75:
1.14      takayama   76: all-html-ja: doc
1.10      takayama   77:        if test ! -f .all-html-100-ja.done ; \
                     78:        then \
                     79:                (cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \
1.12      takayama   80:                (cd tmpJA/OpenXM; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama   81:                touch .all-html-100-ja.done ; \
                     82:        fi
                     83:        if test ! -f .all-html-101-ja.done ; \
                     84:        then \
                     85:                (cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.12      takayama   86:                (cd tmp101JA/OX-RFC-101; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10      takayama   87:                touch .all-html-101-ja.done ; \
                     88:        fi
                     89:
                     90:
                     91: install-web-all: all-html
                     92:        if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi
                     93:        if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi
                     94:        if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi
                     95:        if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi
                     96:        if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi
                     97:        (cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en)
                     98:        (cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja)
                     99:        (cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja)
                    100:        (cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en)
                    101:        if test ! -f .install-ps-done ; then \
                    102:        (cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \
                    103:        (cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \
                    104:        touch .install-ps-done ; \
                    105:        fi
                    106:
                    107:
                    108: clean : clean-done
1.9       takayama  109:        /bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA
                    110:        /bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.10      takayama  111: clean-done:
                    112:        /bin/rm -f .[a-z]*done
1.13      takayama  113: clean-en-done:
                    114:        /bin/rm -f .[a-z]*-en.done
1.1       noro      115:

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