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