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

Annotation of OpenXM/doc/OpenXM-web/Makefile, Revision 1.31

1.31    ! takayama    1: # $OpenXM: OpenXM/doc/OpenXM-web/Makefile,v 1.30 2000/11/26 11:09:01 takayama Exp $
1.1       takayama    2: #
                      3: WEBKOBE=/home/web/OpenXM
1.22      takayama    4: WEBKOBE1=/home/web/OpenXM/1.1.3
1.1       takayama    5: OpenXM_doc=../.
1.5       takayama    6: OpenXM_spec=../OpenXM-specs
1.25      takayama    7: OpenXM_calc=../calc2000p
1.3       takayama    8: DVIPS=dvips -f
1.9       takayama    9: LATEX2HTML=jlatex2html -tmp /tmp
1.28      takayama   10: OXWEAVE=../../bin/oxweave
                     11: OW_FLAG=--recursive
1.1       takayama   12:
1.20      takayama   13: ### For full copy :  make copy-html; make ALL
1.15      takayama   14: # Only for print target.
                     15: PS=a2ps-j
                     16: LPR=lpr -Pdousan
                     17:
1.2       takayama   18: all : install-web-kobe
1.1       takayama   19:
1.5       takayama   20: ALL : all all-spec copy-doc
                     21:
1.28      takayama   22: all-spec : ${WEBKOBE1}/openxm-en.ps ${WEBKOBE1}/openxm-ja.ps
1.22      takayama   23:
                     24:
1.5       takayama   25: copy-doc :
1.28      takayama   26:        /bin/rm -rf ${WEBKOBE1}/doc
                     27:        mkdir ${WEBKOBE1}/doc
                     28:        -(cd ../../doc ; cp -r Papers asir-contrib asir2000 kan96xx ox_math pari ${WEBKOBE1}/doc)
1.8       takayama   29:
1.31    ! takayama   30: copy-html: copy-html-spec copy-html-poster copy-html-spec-101
1.25      takayama   31:
                     32: copy-html-spec:
1.28      takayama   33:        /bin/rm -rf ${WEBKOBE1}/html/OpenXM-en
                     34:        /bin/rm -rf ${WEBKOBE1}/html/OpenXM-ja
                     35:        -mkdir ${WEBKOBE1}/html
                     36:        mkdir ${WEBKOBE1}/html/OpenXM-en
                     37:        mkdir ${WEBKOBE1}/html/OpenXM-ja
1.24      takayama   38:        -(cd $(OpenXM_spec) ; make ; cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM )
                     39:        -(cd $(OpenXM_spec) ; cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM )
1.28      takayama   40:        -(cd $(OpenXM_spec) ; cd tmpEN ; cp -rf OpenXM ${WEBKOBE1}/html/OpenXM-en)
                     41:        -(cd $(OpenXM_spec) ; cd tmpJA ; cp -rf OpenXM ${WEBKOBE1}/html/OpenXM-ja)
1.31    ! takayama   42: copy-html-spec-101:
        !            43:        /bin/rm -rf ${WEBKOBE1}/html/OX-RFC-101-en
        !            44:        /bin/rm -rf ${WEBKOBE1}/html/OX-RFC-101-ja
        !            45:        -mkdir ${WEBKOBE1}/html
        !            46:        mkdir ${WEBKOBE1}/html/OX-RFC-101-en
        !            47:        mkdir ${WEBKOBE1}/html/OX-RFC-101-ja
        !            48:        -(cd $(OpenXM_spec) ; make ; cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 )
        !            49:        -(cd $(OpenXM_spec) ; cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 )
        !            50:        -(cd $(OpenXM_spec) ; cd tmp101EN ; cp -rf OX-RFC-101 ${WEBKOBE1}/html/OX-RFC-101-en)
        !            51:        -(cd $(OpenXM_spec) ; cd tmp101JA ; cp -rf OX-RFC-101 ${WEBKOBE1}/html/OX-RFC-101-ja)
1.25      takayama   52: copy-html-poster:
1.28      takayama   53:        -mkdir ${WEBKOBE1}/html
                     54:        /bin/rm -rf ${WEBKOBE1}/html/OpenXM-poster
                     55:        mkdir ${WEBKOBE1}/html/OpenXM-poster
1.25      takayama   56:        /bin/rm -rf tmp-poster
                     57:        mkdir tmp-poster
1.26      takayama   58:        cp ../calc2000/katsura7.ps tmp-poster
1.25      takayama   59:        cp $(OpenXM_calc)/rgb.sty tmp-poster
                     60:        cp $(OpenXM_calc)/3k.ps tmp-poster
                     61:        cp $(OpenXM_calc)/func1.tex tmp-poster
                     62:        cp $(OpenXM_calc)/func2.tex tmp-poster
                     63:        cp $(OpenXM_calc)/efficient.tex tmp-poster
                     64:        -(cd tmp-poster ; latex func1 ; $(LATEX2HTML) func1 )
                     65:        -(cd tmp-poster ; latex func2 ; $(LATEX2HTML) func2 )
                     66:        -(cd tmp-poster ; latex efficient ; $(LATEX2HTML) efficient )
1.28      takayama   67:        -(cd tmp-poster ; cp -rf func1 func2 efficient ${WEBKOBE1}/html/OpenXM-poster)
1.20      takayama   68:
                     69: ## Under construction.
                     70: namagize-html: copy-html
1.28      takayama   71:        -(cd ${WEBKOBE1}/html/OpenXM-ja ; rm -rf OpenXM-ja.index ; mkdir OpenXM-ja.index )
                     72:        -(cd ${WEBKOBE1}/html/OpenXM-ja/OpenXM-ja.index ; mknmz ../OpenXM-ja/OpenXM)
1.5       takayama   73:
1.23      takayama   74: usage:
                     75:        @echo "Targets are "
                     76:        @echo "    install-web-kobe all-spec copy-doc copy-html"
1.28      takayama   77:        @echo "   "
                     78:        @echo "Several examples"
                     79:        @echo " 1. Generate OpenXM-FAQ-en.txt for a test."
                     80:        @echo "   make WEBKOBE1=. ./OpenXM-FAQ-en.txt"
                     81:        @echo " 2. Generate OpenXM-FAQ-ja.txt for a test."
                     82:        @echo "   make WEBKOBE1=. ./OpenXM-FAQ-ja.txt"
1.23      takayama   83:
                     84: checkDir :
                     85:        if test ! -d ${WEBKOBE1} ; \
                     86:        then \
                     87:          mkdir ${WEBKOBE1} ;  \
                     88:        fi
                     89:        if test ! -d ${WEBKOBE1}/doc ; \
                     90:        then \
                     91:          mkdir ${WEBKOBE1}/doc ;  \
                     92:        fi \
1.5       takayama   93:
                     94:
1.30      takayama   95: install-web-kobe :  checkDir ${WEBKOBE}/index.html ${WEBKOBE}/OpenXM-RFC.html ${WEBKOBE}/issac2000.ps ${WEBKOBE1}/cmotag.h ${WEBKOBE1}/oxMessageTag.h ${WEBKOBE1}/smCommand.h  ${WEBKOBE1}/install-en.txt ${WEBKOBE1}/install-ja.txt  ${WEBKOBE1}/ERRATA.html ${WEBKOBE1}/index-binary.html ${WEBKOBE1}/index-packages.html ${WEBKOBE1}/install-faq.txt ${WEBKOBE1}/OpenXM-FAQ-en.txt ${WEBKOBE1}/OpenXM-FAQ-ja.txt ${WEBKOBE1}/doc/index.html
1.2       takayama   96:
1.28      takayama   97: ${WEBKOBE}/index.html : index.html
                     98:        cp -f index.html ${WEBKOBE}
                     99:        cp -f index.html ${WEBKOBE1}
1.16      takayama  100:
1.28      takayama  101: ${WEBKOBE1}/index-binary.html : index-binary.html
                    102:        cp -f index-binary.html ${WEBKOBE1}
1.29      takayama  103:
1.30      takayama  104: ${WEBKOBE}/OpenXM-RFC.html : OpenXM-RFC.html
                    105:        cp -f OpenXM-RFC.html ${WEBKOBE}
1.16      takayama  106:
1.28      takayama  107: ${WEBKOBE1}/index-packages.html : index-packages.html
                    108:        cp -f index-packages.html ${WEBKOBE1}
1.2       takayama  109:
1.28      takayama  110: ${WEBKOBE}/issac2000.ps : $(OpenXM_doc)/issac2000/issac2000.ps
                    111:        cp -f $(OpenXM_doc)/issac2000/issac2000.ps ${WEBKOBE}
1.3       takayama  112:
1.28      takayama  113: ${WEBKOBE1}/cmotag.h : cmotag.h
                    114:        cp -f cmotag.h ${WEBKOBE1}
1.3       takayama  115:
1.28      takayama  116: ${WEBKOBE1}/oxMessageTag.h : oxMessageTag.h
                    117:        cp -f oxMessageTag.h ${WEBKOBE1}
1.3       takayama  118:
1.28      takayama  119: ${WEBKOBE1}/smCommand.h : smCommand.h
                    120:        cp -f smCommand.h ${WEBKOBE1}
1.3       takayama  121:
1.28      takayama  122: ${WEBKOBE1}/openxm-en.ps : $(OpenXM_spec)/tmpEN/OpenXM.tex
                    123:        -rm -f ${WEBKOBE1}/openxm-en.ps
1.27      takayama  124:        -(cd $(OpenXM_spec) ; make doc ; cd tmpEN ; latex OpenXM ; latex OpenXM)
1.28      takayama  125:        -( cd $(OpenXM_spec)/tmpEN ; $(DVIPS) OpenXM >${WEBKOBE1}/openxm-en.ps)
1.3       takayama  126:
1.28      takayama  127: ${WEBKOBE1}/openxm-ja.ps : $(OpenXM_spec)/tmpJA/OpenXM.tex
                    128:        -rm -f ${WEBKOBE1}/openxm-ja.ps
1.27      takayama  129:        -(cd $(OpenXM_spec) ; make doc ; cd tmpJA ; platex OpenXM ; platex OpenXM)
1.28      takayama  130:        -(cd $(OpenXM_spec)/tmpJA ; $(DVIPS) OpenXM >${WEBKOBE1}/openxm-ja.ps)
1.4       takayama  131:
1.28      takayama  132: ${WEBKOBE1}/install-en.txt : $(OpenXM_doc)/install-en.txt
                    133:        -cp $(OpenXM_doc)/install-en.txt ${WEBKOBE1}
1.5       takayama  134:
1.27      takayama  135: $(OpenXM_spec)/tmpEN/OpenXM.tex :
1.5       takayama  136:        -(cd $(OpenXM_spec) ; make )
1.27      takayama  137: $(OpenXM_spec)/tmpJA/OpenXM.tex :
1.5       takayama  138:        -(cd $(OpenXM_spec) ; make )
1.4       takayama  139:
1.28      takayama  140: ${WEBKOBE1}/install-ja.txt : $(OpenXM_doc)/install-ja.txt
                    141:        -cp $(OpenXM_doc)/install-ja.txt ${WEBKOBE1}
1.22      takayama  142: $(OpenXM_doc)/install-en.txt : $(OpenXM_doc)/install.oxweave
1.4       takayama  143:        ( cd $(OpenXM_doc) ; make )
1.22      takayama  144: $(OpenXM_doc)/install-ja.txt : $(OpenXM_doc)/install.oxweave
1.4       takayama  145:        ( cd $(OpenXM_doc) ; make )
1.28      takayama  146: ${WEBKOBE1}/ERRATA.html : ERRATA.html
                    147:        cp -f ERRATA.html ${WEBKOBE1}/ERRATA.html
                    148: ${WEBKOBE1}/install-faq.txt : install-faq.txt
                    149:        cp -f install-faq.txt ${WEBKOBE1}/install-faq.txt
                    150: ${WEBKOBE1}/OpenXM-FAQ-en.txt : ../OpenXM-FAQ.oxweave
                    151:        -rm ${WEBKOBE1}/OpenXM-FAQ-en.txt
                    152:        echo "DO NOT EDIT THIS FILE" >${WEBKOBE1}/OpenXM-FAQ-en.txt
                    153:        ${OXWEAVE} ${OW_FLAG} en C <../OpenXM-FAQ.oxweave >>${WEBKOBE1}/OpenXM-FAQ-en.txt
                    154: ${WEBKOBE1}/OpenXM-FAQ-ja.txt : ../OpenXM-FAQ.oxweave
                    155:        -rm ${WEBKOBE1}/OpenXM-FAQ-ja.txt
                    156:        echo "DO NOT EDIT THIS FILE" >${WEBKOBE1}/OpenXM-FAQ-ja.txt
                    157:        ${OXWEAVE} ${OW_FLAG} ja C <../OpenXM-FAQ.oxweave >>${WEBKOBE1}/OpenXM-FAQ-ja.txt
                    158: ${WEBKOBE1}/doc/index.html : index-doc.html
                    159:        cp -f index-doc.html ${WEBKOBE1}/doc/index.html
1.11      takayama  160:
                    161: copy-errata :
1.28      takayama  162:        cp -f ERRATA.html ${WEBKOBE1}/ERRATA.html
1.12      takayama  163: copy-index :
1.28      takayama  164:        cp -f index.html ${WEBKOBE1}/index.html
1.14      takayama  165:
                    166: copy-errata-top :
1.28      takayama  167:        cp -f ERRATA.html ${WEBKOBE}/ERRATA.html
1.14      takayama  168: copy-index-top :
1.28      takayama  169:        cp -f index.html ${WEBKOBE}/index.html
1.3       takayama  170:
                    171: clean-web-kobe :
1.28      takayama  172:        -rm ${WEBKOBE}/index.html ${WEBKOBE}/issac2000.ps ${WEBKOBE1}/cmotag.h ${WEBKOBE1}/oxMessageTag.h ${WEBKOBE1}/smCommand.h ${WEBKOBE1}/openxm-en.ps ${WEBKOBE1}/openxm-ja.ps
1.25      takayama  173:
                    174: clean:
                    175:        /bin/rm -rf tmp-poster calc2000
1.15      takayama  176:
                    177: print:
                    178:        $(PS) Makefile | $(LPR)
                    179:        $(PS) index.html | $(LPR)

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