Annotation of OpenXM/doc/OpenXM-specs/Makefile, Revision 1.20
1.20 ! takayama 1: #$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.19 2004/06/21 01:06:37 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.17 ohara 12: OXWEAVE_C=../../src/util/oxweave.c
1.2 noro 13: OXWEAVEFLAG=--recursive --plain
1.19 takayama 14: OXREPLACE=../../bin/oxreplace
1.6 noro 15: SRC= OpenXM.tex cmo-basic0.tex cmo-basic1.tex\
16: cmo-register.tex communication-model.tex control.tex\
17: error.tex formal-expression.tex howtowrite.tex\
18: implementation.tex introduction.tex library.tex\
19: ox-localdata.tex project.tex redefine.tex\
20: stackmachine.tex start-session.tex string-expression.tex
21:
1.9 takayama 22: SRC101=OX-RFC-101.tex
1.18 takayama 23: SRC103=OX-RFC-103.oxw
1.9 takayama 24:
25: doc: OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.6 noro 26:
1.8 takayama 27: OpenXM-en.dvi: $(OXWEAVE) $(SRC)
28: -rm -rf tmpEN
29: -mkdir tmpEN
1.9 takayama 30: -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done
1.8 takayama 31: (cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM)
32: -mv tmpEN/OpenXM.dvi OpenXM-en.dvi
33: touch OpenXM-en.dvi
34:
35: OpenXM-ja.dvi: $(OXWEAVE) $(SRC)
36: -rm -rf tmpJA
37: -mkdir tmpJA
1.11 takayama 38: -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmpJA/$$i; done
1.8 takayama 39: -(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM)
40: -mv tmpJA/OpenXM.dvi OpenXM-ja.dvi
41: touch OpenXM-ja.dvi
1.1 noro 42:
1.9 takayama 43: OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101)
44: -rm -rf tmp101EN
45: -mkdir tmp101EN
46: -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done
47: (cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101)
48: -mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi
49: touch OX-RFC-101-en.dvi
50:
51: OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101)
52: -rm -rf tmp101JA
53: -mkdir tmp101JA
1.11 takayama 54: -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmp101JA/$$i; done
1.9 takayama 55: -(cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101)
56: -mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi
57: touch OX-RFC-101-ja.dvi
58:
1.20 ! takayama 59: OX-RFC-103-en.txt: $(OXWEAVE) $(SRC103)
1.18 takayama 60: -rm -rf tmp103EN
61: -mkdir tmp103EN
62: -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C en < $$i | ${NKF} >tmp103EN/$$i; done
1.20 ! takayama 63: -(cd tmp103EN; mv OX-RFC-103.oxw OX-RFC-103.txt)
! 64: -mv tmp103JA/OX-RFC-103.txt OX-RFC-103-en.txt
! 65: OX-RFC-103-ja.txt: $(OXWEAVE) $(SRC103)
1.18 takayama 66: -rm -rf tmp103JA
67: -mkdir tmp103JA
68: -for i in $(SRC103); do $(OXWEAVE) $(OXWEAVEFLAG) C ja < $$i | ${NKF} >tmp103JA/$$i; done
1.20 ! takayama 69: -(cd tmp103JA; mv OX-RFC-103.oxw OX-RFC-103.txt)
! 70: -mv tmp103JA/OX-RFC-103.txt OX-RFC-103-ja.txt
! 71: ox-rfc-104-ja.txt: ox-rfc-104.oxw
! 72: echo "% DO NOT EDIT THIS FILE" >ox-rfc-104-ja.txt
! 73: $(OXWEAVE) $(OXWEAVEFLAG) C ja < ox-rfc-104.oxw >>ox-rfc-104-ja.txt
! 74: ox-rfc-103-en.txt: OX-RFC-103.oxw
! 75: echo "% DO NOT EDIT THIS FILE" >ox-rfc-103-en.txt
! 76: $(OXWEAVE) $(OXWEAVEFLAG) C en < OX-RFC-103.oxw >>ox-rfc-103-en.txt
! 77: ox-rfc-104-en.txt: ox-rfc-104.oxw
! 78: echo "% DO NOT EDIT THIS FILE" >ox-rfc-104-en.txt
! 79: $(OXWEAVE) $(OXWEAVEFLAG) C en < ox-rfc-104.oxw >>ox-rfc-104-en.txt
! 80:
1.18 takayama 81:
1.17 ohara 82: $(OXWEAVE) : $(OXWEAVE_C)
83: (cd ../../src/util ; make oxweave)
1.1 noro 84:
1.13 takayama 85: all-html: all-html-ja all-html-en
1.14 takayama 86: all-html-en: doc
1.13 takayama 87: if test ! -f .all-html-100-en.done ; \
88: then \
89: (cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \
1.15 takayama 90: (cd tmpEN/OpenXM ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13 takayama 91: touch .all-html-100-en.done ; \
92: fi
93: if test ! -f .all-html-101-en.done ; \
94: then \
95: (cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.15 takayama 96: (cd tmp101EN/OX-RFC-101 ; $(JFIX) *.html ; rm -f *-tmp.old ) ; \
1.13 takayama 97: touch .all-html-101-en.done ; \
98: fi
99:
1.14 takayama 100: all-html-ja: doc
1.10 takayama 101: if test ! -f .all-html-100-ja.done ; \
102: then \
103: (cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \
1.12 takayama 104: (cd tmpJA/OpenXM; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10 takayama 105: touch .all-html-100-ja.done ; \
106: fi
107: if test ! -f .all-html-101-ja.done ; \
108: then \
109: (cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.12 takayama 110: (cd tmp101JA/OX-RFC-101; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10 takayama 111: touch .all-html-101-ja.done ; \
112: fi
113:
114:
115: install-web-all: all-html
116: if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi
117: if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi
118: if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi
119: if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi
120: if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi
121: (cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en)
122: (cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja)
123: (cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja)
124: (cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en)
125: if test ! -f .install-ps-done ; then \
126: (cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \
127: (cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \
128: touch .install-ps-done ; \
129: fi
130:
131:
132: clean : clean-done
1.18 takayama 133: /bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA tmp103EN tmp103JA
1.20 ! takayama 134: /bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi OX-RFC-103-ja.txt OX-RFC-103-en.txt ox-rfc-104-ja.txt ox-rfc-104-en.txt
1.10 takayama 135: clean-done:
136: /bin/rm -f .[a-z]*done
1.13 takayama 137: clean-en-done:
138: /bin/rm -f .[a-z]*-en.done
1.1 noro 139:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>