Annotation of OpenXM/doc/OpenXM-specs/Makefile, Revision 1.14
1.14 ! takayama 1: #$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.13 2003/03/26 13:26:00 takayama Exp $
1.1 noro 2: all : doc
3:
1.10 takayama 4: LATEX2HTML=latex2html -tmp /tmp
5: DVIPS=dvips -f
6: RSYNC=rsync -Cavz
7: CURRENT=/home/web/OpenXM/Current
1.11 takayama 8: NKF=nkf -e
1.10 takayama 9:
1.1 noro 10: OXWEAVE=../../src/kxx/oxweave
1.2 noro 11: OXWEAVEFLAG=--recursive --plain
1.11 takayama 12: OXREPLACE=../../src/util/oxreplace
1.6 noro 13: SRC= OpenXM.tex cmo-basic0.tex cmo-basic1.tex\
14: cmo-register.tex communication-model.tex control.tex\
15: error.tex formal-expression.tex howtowrite.tex\
16: implementation.tex introduction.tex library.tex\
17: ox-localdata.tex project.tex redefine.tex\
18: stackmachine.tex start-session.tex string-expression.tex
19:
1.9 takayama 20: SRC101=OX-RFC-101.tex
21:
22: doc: OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.6 noro 23:
1.8 takayama 24: OpenXM-en.dvi: $(OXWEAVE) $(SRC)
25: -rm -rf tmpEN
26: -mkdir tmpEN
1.9 takayama 27: -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done
1.8 takayama 28: (cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM)
29: -mv tmpEN/OpenXM.dvi OpenXM-en.dvi
30: touch OpenXM-en.dvi
31:
32: OpenXM-ja.dvi: $(OXWEAVE) $(SRC)
33: -rm -rf tmpJA
34: -mkdir tmpJA
1.11 takayama 35: -for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmpJA/$$i; done
1.8 takayama 36: -(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM)
37: -mv tmpJA/OpenXM.dvi OpenXM-ja.dvi
38: touch OpenXM-ja.dvi
1.1 noro 39:
1.9 takayama 40: OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101)
41: -rm -rf tmp101EN
42: -mkdir tmp101EN
43: -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done
44: (cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101)
45: -mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi
46: touch OX-RFC-101-en.dvi
47:
48: OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101)
49: -rm -rf tmp101JA
50: -mkdir tmp101JA
1.11 takayama 51: -for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | ${NKF} >tmp101JA/$$i; done
1.9 takayama 52: -(cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101)
53: -mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi
54: touch OX-RFC-101-ja.dvi
55:
1.1 noro 56: $(OXWEAVE) : $(OXWEAVE).c
57: (cd ../../src/kxx ; make oxweave)
58:
1.13 takayama 59: all-html: all-html-ja all-html-en
1.14 ! takayama 60: all-html-en: doc
1.13 takayama 61: if test ! -f .all-html-100-en.done ; \
62: then \
63: (cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \
64: touch .all-html-100-en.done ; \
65: fi
66: if test ! -f .all-html-101-en.done ; \
67: then \
68: (cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
69: touch .all-html-101-en.done ; \
70: fi
71:
1.14 ! takayama 72: all-html-ja: doc
1.10 takayama 73: if test ! -f .all-html-100-ja.done ; \
74: then \
75: (cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \
1.12 takayama 76: (cd tmpJA/OpenXM; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10 takayama 77: touch .all-html-100-ja.done ; \
78: fi
79: if test ! -f .all-html-101-ja.done ; \
80: then \
81: (cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \
1.12 takayama 82: (cd tmp101JA/OX-RFC-101; ../../${OXREPLACE} --old iso-8859-1 --new euc-jp *.html) ; \
1.10 takayama 83: touch .all-html-101-ja.done ; \
84: fi
85:
86:
87: install-web-all: all-html
88: if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi
89: if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi
90: if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi
91: if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi
92: if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi
93: (cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en)
94: (cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja)
95: (cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja)
96: (cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en)
97: if test ! -f .install-ps-done ; then \
98: (cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \
99: (cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \
100: touch .install-ps-done ; \
101: fi
102:
103:
104: clean : clean-done
1.9 takayama 105: /bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA
106: /bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi
1.10 takayama 107: clean-done:
108: /bin/rm -f .[a-z]*done
1.13 takayama 109: clean-en-done:
110: /bin/rm -f .[a-z]*-en.done
1.1 noro 111:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>