=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/Attic/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.8 diff -u -p -r1.1.1.1 -r1.8 --- OpenXM/src/kan96xx/Doc/Attic/Makefile 1999/10/08 02:12:02 1.1.1.1 +++ OpenXM/src/kan96xx/Doc/Attic/Makefile 2003/09/07 08:58:03 1.8 @@ -1,25 +1,72 @@ +## $OpenXM: OpenXM/src/kan96xx/Doc/Makefile,v 1.7 2002/04/07 07:18:50 takayama Exp $ ########## Documents +OpenXM_HOME=../../.. +OpenXM_doc=$(OpenXM_HOME)/doc +OpenXM_lib=${OpenXM_HOME}/lib +DVIPS=dvips -f +CC=gcc +LATEX2HTML=latex2html + all : ttt.tex onlinehelp.tex echo "The document kan/example is in the file ttt.tex." echo "onlinehelp.tex is a collection of online help." ttt.dvi : ttt.tex - latex ttt ; latex ttt + -latex ttt + -latex ttt ttt.tex : ex.tex ole cv0.sm1 cv2.sm1 gbelim.sm1 gblex.sm1 gbrev.sm1 gbrevsim.sm1 /bin/rm -f ttt.tex ./ole ttt.tex onlinehelp.tex : - ./printOnlineHelp - latex onlinehelp ; latex onlinehelp + -./printOnlineHelp ${OpenXM_lib} +onlinehelp.dvi : onlinehelp.tex + -latex onlinehelp + -latex onlinehelp + ole : ole.c + ${CC} -o ole ole.c +make-html-document : onlinehelp.tex ttt.tex + -${LATEX2HTML} onlinehelp + -${LATEX2HTML} ttt + +### +install-document : + @if [ ! -f ./.done_install-document ] ; \ + then \ + make install-document2 ; \ + touch ./.done_install-document ; \ + else \ + echo "NOTE: Install-document is already done. Remove .done_install-document for a new install-document." ; \ + fi + +install-document2 : onlinehelp.dvi ttt.dvi clean-OpenXM-doc make-html-document + mkdir $(OpenXM_doc)/kan96xx + touch $(OpenXM_doc)/kan96xx/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED. + -cp ttt.tex $(OpenXM_doc)/kan96xx/intro.tex + -cp onlinehelp.tex $(OpenXM_doc)/kan96xx/onlinehelp.tex + -$(DVIPS) ttt >$(OpenXM_doc)/kan96xx/intro.ps + -$(DVIPS) onlinehelp >$(OpenXM_doc)/kan96xx/onlinehelp.ps + -cp -r onlinehelp $(OpenXM_doc)/kan96xx + -cp -r ttt $(OpenXM_doc)/kan96xx + +clean-OpenXM-doc : + -/bin/rm -rf $(OpenXM_doc)/kan96xx + +########## cleaning +clean: + -/bin/rm -rf ttt.* ole *.dvi *.aux *.log *~ kanlib1 onlinehelp.tex a.out bin/ox bin/oxlog bin/ox_sm1 onlinehelp ttt ./.done_install-document + +clean-document: + -/bin/rm -rf ttt.* ole *.dvi *.aux *.log *~ kanlib1 onlinehelp.tex a.out onlinehelp ttt ./.done_install-document + ########### kan/library -CC = gcc -KAN_HOME = ../Kan -GMP_HOME = ../gmp -LIBGMP = $(GMP_HOME)/libgmp.a +CC=gcc +KAN_HOME=../Kan +GMP_HOME=../gmp +LIBGMP=$(GMP_HOME)/libgmp.a ## This line is for buggy linux-gmp. #LIBGMP = $(GMP_HOME)/libgmp.a $(GMP_HOME)/mpn/libmpn.a GC = ../gc/gc.a @@ -28,9 +75,3 @@ kanlib1 : kanlib1.c (cd $(KAN_HOME); make kanlib.a) $(CC) -I$(GMP_HOME) -I$(KAN_HOME) -o kanlib1 kanlib1.c $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) -########## cleaning -clean: - /bin/rm ttt.* ole *.dvi *.aux *.log *~ kanlib1 onlinehelp.tex a.out bin/ox bin/oxlog bin/ox_sm1 - -clean2: - /bin/rm ttt.* ole *.dvi *.aux *.log *~ kanlib1 onlinehelp.tex a.out