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

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

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

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