version 1.8, 2000/09/09 03:01:24 |
version 1.10, 2003/03/25 11:22:17 |
|
|
#$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.7 2000/01/24 12:32:49 noro Exp $ |
#$OpenXM: OpenXM/doc/OpenXM-specs/Makefile,v 1.9 2000/11/30 02:41:36 takayama Exp $ |
all : doc |
all : doc |
|
|
|
LATEX2HTML=latex2html -tmp /tmp |
|
DVIPS=dvips -f |
|
RSYNC=rsync -Cavz |
|
CURRENT=/home/web/OpenXM/Current |
|
|
OXWEAVE=../../src/kxx/oxweave |
OXWEAVE=../../src/kxx/oxweave |
OXWEAVEFLAG=--recursive --plain |
OXWEAVEFLAG=--recursive --plain |
SRC= OpenXM.tex cmo-basic0.tex cmo-basic1.tex\ |
SRC= OpenXM.tex cmo-basic0.tex cmo-basic1.tex\ |
Line 10 implementation.tex introduction.tex library.tex\ |
|
Line 15 implementation.tex introduction.tex library.tex\ |
|
ox-localdata.tex project.tex redefine.tex\ |
ox-localdata.tex project.tex redefine.tex\ |
stackmachine.tex start-session.tex string-expression.tex |
stackmachine.tex start-session.tex string-expression.tex |
|
|
doc: OpenXM-en.dvi OpenXM-ja.dvi |
SRC101=OX-RFC-101.tex |
|
|
|
doc: OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi |
|
|
OpenXM-en.dvi: $(OXWEAVE) $(SRC) |
OpenXM-en.dvi: $(OXWEAVE) $(SRC) |
-rm -rf tmpEN |
-rm -rf tmpEN |
-mkdir tmpEN |
-mkdir tmpEN |
-for i in *.tex; do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done |
-for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmpEN/$$i; done |
(cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM) |
(cd tmpEN; ln -s ../reset.eps .; latex OpenXM; latex OpenXM) |
-mv tmpEN/OpenXM.dvi OpenXM-en.dvi |
-mv tmpEN/OpenXM.dvi OpenXM-en.dvi |
touch OpenXM-en.dvi |
touch OpenXM-en.dvi |
Line 23 OpenXM-en.dvi: $(OXWEAVE) $(SRC) |
|
Line 30 OpenXM-en.dvi: $(OXWEAVE) $(SRC) |
|
OpenXM-ja.dvi: $(OXWEAVE) $(SRC) |
OpenXM-ja.dvi: $(OXWEAVE) $(SRC) |
-rm -rf tmpJA |
-rm -rf tmpJA |
-mkdir tmpJA |
-mkdir tmpJA |
-for i in *.tex; do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i >tmpJA/$$i; done |
-for i in $(SRC); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i >tmpJA/$$i; done |
-(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM) |
-(cd tmpJA; ln -s ../reset.eps .; platex OpenXM; platex OpenXM) |
-mv tmpJA/OpenXM.dvi OpenXM-ja.dvi |
-mv tmpJA/OpenXM.dvi OpenXM-ja.dvi |
touch OpenXM-ja.dvi |
touch OpenXM-ja.dvi |
|
|
|
OX-RFC-101-en.dvi: $(OXWEAVE) $(SRC101) |
|
-rm -rf tmp101EN |
|
-mkdir tmp101EN |
|
-for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C eg < $$i >tmp101EN/$$i; done |
|
(cd tmp101EN; latex OX-RFC-101; latex OX-RFC-101) |
|
-mv tmp101EN/OX-RFC-101.dvi OX-RFC-101-en.dvi |
|
touch OX-RFC-101-en.dvi |
|
|
|
OX-RFC-101-ja.dvi: $(OXWEAVE) $(SRC101) |
|
-rm -rf tmp101JA |
|
-mkdir tmp101JA |
|
-for i in $(SRC101); do $(OXWEAVE) $(OXWEAVEFLAG) C jp < $$i | nkf -e >tmp101JA/$$i; done |
|
-(cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101) |
|
-mv tmp101JA/OX-RFC-101.dvi OX-RFC-101-ja.dvi |
|
touch OX-RFC-101-ja.dvi |
|
|
$(OXWEAVE) : $(OXWEAVE).c |
$(OXWEAVE) : $(OXWEAVE).c |
(cd ../../src/kxx ; make oxweave) |
(cd ../../src/kxx ; make oxweave) |
|
|
clean : |
all-html: doc .all-html-100-en.done .all-html-101-en.done |
/bin/rm -rf tmpEN tmpJA |
if test ! -f .all-html-100-ja.done ; \ |
/bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi |
then \ |
|
(cd tmpJA; platex OpenXM; platex OpenXM ; $(LATEX2HTML) OpenXM) ; \ |
|
touch .all-html-100-ja.done ; \ |
|
fi |
|
if test ! -f .all-html-100-en.done ; \ |
|
then \ |
|
(cd tmpEN ; latex OpenXM; latex OpenXM ; $(LATEX2HTML) OpenXM ) ; \ |
|
touch .all-html-100-en.done ; \ |
|
fi |
|
if test ! -f .all-html-101-ja.done ; \ |
|
then \ |
|
(cd tmp101JA; platex OX-RFC-101; platex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \ |
|
touch .all-html-101-ja.done ; \ |
|
fi |
|
if test ! -f .all-html-101-en.done ; \ |
|
then \ |
|
(cd tmp101EN ; latex OX-RFC-101; latex OX-RFC-101 ; $(LATEX2HTML) OX-RFC-101 ) ; \ |
|
touch .all-html-101-en.done ; \ |
|
fi |
|
|
|
.all-html-100-en.done: ${SRC} |
|
make clean-done |
|
.all-html-101-en.done: ${SRC101} |
|
make clean-done |
|
|
|
install-web-all: all-html |
|
if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi |
|
if test ! -d ${CURRENT}/doc/OX-RFC-100-en ; then mkdir ${CURRENT}/doc/OX-RFC-100-en ; fi |
|
if test ! -d ${CURRENT}/doc/OX-RFC-100-ja ; then mkdir ${CURRENT}/doc/OX-RFC-100-ja ; fi |
|
if test ! -d ${CURRENT}/doc/OX-RFC-101-en ; then mkdir ${CURRENT}/doc/OX-RFC-101-en ; fi |
|
if test ! -d ${CURRENT}/doc/OX-RFC-101-ja ; then mkdir ${CURRENT}/doc/OX-RFC-101-ja ; fi |
|
(cd tmpEN; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-en) |
|
(cd tmpJA; ${RSYNC} OpenXM ${CURRENT}/doc/OX-RFC-100-ja) |
|
(cd tmp101JA; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-ja) |
|
(cd tmp101EN; ${RSYNC} OX-RFC-101 ${CURRENT}/doc/OX-RFC-101-en) |
|
if test ! -f .install-ps-done ; then \ |
|
(cd tmpEN ; $(DVIPS) OpenXM >${CURRENT}/openxm-en.ps) ; \ |
|
(cd tmpJA ; $(DVIPS) OpenXM >${CURRENT}/openxm-ja.ps) ; \ |
|
touch .install-ps-done ; \ |
|
fi |
|
|
|
|
|
clean : clean-done |
|
/bin/rm -rf tmpEN tmpJA tmp101EN tmp101JA |
|
/bin/rm -f OpenXM-en.dvi OpenXM-ja.dvi OX-RFC-101-en.dvi OX-RFC-101-ja.dvi |
|
clean-done: |
|
/bin/rm -f .[a-z]*done |
|
|
|
|