# Index: OSLib/!OsLib/Tools/Makefile,fe1	20031230
#===================================================================
#
DIR   = <OSLib$ToolsDir>
COPYFLAGS   = A~C~DFLN~P~Q~R~S~T~V

RM    	    = OSLibBin:rm
MAKE   	    = amu -desktop

# build all tools
all:  stage2 stage1
      @echo

# build tools which don't depend on OSLib
stage1:
   ${MAKE} -f ${DIR}.bison.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.DefMod2.defmod.Build_RISCOS.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.ReduceAOF.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.Rm.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.ToLower.Makefile all APCS=${APCS} OSLIB=${OSLIB}

# build tools which depend on OSLib
stage2:
   ${MAKE} -f ${DIR}.BindHelp.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.IndexHelp.Makefile all APCS=${APCS} OSLIB=${OSLIB}
   ${MAKE} -f ${DIR}.StripDepends.Makefile all APCS=${APCS} OSLIB=${OSLIB}

# build the directory tree
tree:
   ${MAKE} -f ${DIR}.BindHelp.Makefile tree
   ${MAKE} -f ${DIR}.DefMod2.defmod.Build_RISCOS.Makefile tree
   ${MAKE} -f ${DIR}.IndexHelp.Makefile tree
   ${MAKE} -f ${DIR}.ReduceAOF.Makefile tree
   ${MAKE} -f ${DIR}.Rm.Makefile tree
   ${MAKE} -f ${DIR}.StripDepends.Makefile tree
   ${MAKE} -f ${DIR}.bison.Makefile tree
   ${MAKE} -f ${DIR}.ToLower.Makefile tree
   @ifthere ${DIR}.tree then stamp ${DIR}.tree else create ${DIR}.tree

clean:
   ${MAKE} -f ${DIR}.BindHelp.Makefile clean
   ${MAKE} -f ${DIR}.DefMod2.defmod.Build_RISCOS.Makefile clean
   ${MAKE} -f ${DIR}.IndexHelp.Makefile clean
   ${MAKE} -f ${DIR}.ReduceAOF.Makefile clean
   ${MAKE} -f ${DIR}.Rm.Makefile clean
   ${MAKE} -f ${DIR}.StripDepends.Makefile clean
   ${MAKE} -f ${DIR}.bison.Makefile clean
   ${MAKE} -f ${DIR}.ToLower.Makefile clean

stripdepends:
   ${MAKE} -f ${DIR}.BindHelp.Makefile stripdepends
   ${MAKE} -f ${DIR}.DefMod2.defmod.Build_RISCOS.Makefile stripdepends
   ${MAKE} -f ${DIR}.IndexHelp.Makefile stripdepends
   ${MAKE} -f ${DIR}.ReduceAOF.Makefile stripdepends
   ${MAKE} -f ${DIR}.Rm.Makefile stripdepends
   ${MAKE} -f ${DIR}.StripDepends.Makefile stripdepends
   ${MAKE} -f ${DIR}.bison.Makefile stripdepends
   ${MAKE} -f ${DIR}.ToLower.Makefile stripdepends

archive_source:
   cdir ${ARCHIVE}
   copy * ${ARCHIVE}.* ${COPYFLAGS}
   ${MAKE} -f ${DIR}.BindHelp.Makefile archive_source ARCHIVE=${ARCHIVE}.BindHelp
   ${MAKE} -f ${DIR}.DefMod2.defmod.Build_RISCOS.Makefile archive_source ARCHIVE=${ARCHIVE}.DefMod2
   ${MAKE} -f ${DIR}.IndexHelp.Makefile archive_source ARCHIVE=${ARCHIVE}.IndexHelp
   ${MAKE} -f ${DIR}.ReduceAOF.Makefile archive_source ARCHIVE=${ARCHIVE}.ReduceAOF
   ${MAKE} -f ${DIR}.Rm.Makefile archive_source ARCHIVE=${ARCHIVE}.Rm
   ${MAKE} -f ${DIR}.StripDepends.Makefile archive_source ARCHIVE=${ARCHIVE}.StripDepends
   ${MAKE} -f ${DIR}.bison.Makefile archive_source ARCHIVE=${ARCHIVE}.bison
