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

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

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

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