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