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

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

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

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