# # Makefile.math # Autoconf Fragment when using Math # Daniel Veillard and Irene Vatton 1997 # AMAYA_MATH_OPTIONS=-DMATHML AMAYA_MATH_OBJ= \ MathMLAPP.o \ XMLparser.o \ MathMLbuilder.o \ Mathedit.o AMAYA_MATH_SRC= \ MathML.h \ MathMLAPP.c AMAYA_MATH_LIBS= AMAYA_MATH_EXTRA_LIBS= AMAYA_MATH_INCLUDES= AMAYA_MATH_SCHEMAS= $(AMAYA)/MathML.S $(AMAYA)/MathMLP.P $(AMAYA)/MathMLT.T amaya_math_schema : compMATH compMATHP compMATHT # # Structure schema compilation. # compMATH : $(AMAYA)/MathML.STR $(AMAYA)/MathML.STR : $(AMAYA)/MathML.S ../bin/str ../bin/prs ../bin/tra STR=`pwd`/../bin/str;PRS=`pwd`/../bin/prs;TRA=`pwd`/../bin/tra;\ cd $(AMAYA); THOTDIR=`pwd`/.. ;export THOTDIR; \ $$STR $(ALL_AMAYA_OPTIONS) MathML ; \ $$PRS $(ALL_AMAYA_OPTIONS) MathMLP ; \ $$TRA $(ALL_AMAYA_OPTIONS) MathMLT # # Presentation schemas compilation # compMATHP : $(AMAYA)/MathMLP.PRS $(AMAYA)/MathMLP.PRS : $(AMAYA)/MathMLP.P ../bin/prs PRS=`pwd`/../bin/prs;\ cd $(AMAYA); THOTDIR=`pwd`/.. ;export THOTDIR; \ $$PRS $(ALL_AMAYA_OPTIONS) MathMLP # # Traduction schemas compilation # compMATHT : $(AMAYA)/MathMLT.TRA $(AMAYA)/MathMLT.TRA : $(AMAYA)/MathMLT.T ../bin/tra TRA=`pwd`/../bin/tra;\ cd $(AMAYA); THOTDIR=`pwd`/.. ;export THOTDIR; \ $$TRA $(ALL_AMAYA_OPTIONS) MathMLT # # Interface schemas compilation # MathML.h MathMLAPP.c : $(AMAYA)/MathML.STR $(AMAYA)/MathML.A ../bin/app (if test "$(AMAYA)" != "" -a "$(AMAYA)" != "." -a \ "$(AMAYA)" != "../amaya" ; then \ $(CP) $(AMAYA)/MathML.A . ; \ $(CP) $(AMAYA)/MathML.STR . ; \ fi) THOTDIR=$(THOTDIR) ; export THOTDIR ; \ ../bin/app $(ALL_AMAYA_OPTIONS) MathML.A