echo off
rem --
rem -- This batch file builds all.mak.  This makefile contains
rem -- sub makefiles that will all be built.
rem --
rem -- For now, it always build in DEBUG mode.
rem --
rem -- all.mak refers to the following environement variable:
rem --
rem --    JAVAROOT  ---  must point to the directory in which the class
rem --                   directory will be created.  All packages will
rem --                   be output there.
rem --
rem --
rem -- This makefile works only using Symantec Cafe 1.02. Cafe\bin
rem -- must be in your path.
rem -- 
rem --

xcopy \web\java\v100\src\componentapps\quattro \web\java\v100\class\corel\quattro /s

cd %JAVAROOT%\class\corel\quattro\engine\functions

echo building functions...
smake > %JAVAROOT%\class\corel\quattro\errorfn.txt

cd ..\..
echo building quattro...
smake > errorqt.txt

rem -- Delete the java files.

echo deleting java files...
echo off

attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd appui
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd ..\docview
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd ..\engine
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd functions
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd ..\features
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd ..\..\numfmt
attrib -r *
del *.txt
del *.cdb
del *.java
del *.prj
del *.mak
del *.scc
cd ..

echo on

rem -- end of file.
