#
# Devtools Makefile
#

#
# Devtools is used to create PathDefines.mak, so
# it may not be present when we build. So as we
# don't need it for the build, let's go ahead and
# delete it (Devtools has all dependencies
# referenced explictly to avoid chicken-and-egg
# here).
#
EXCLUDEPATHDEFINES=1

!include ..\..\Defines.mak

build: dirs
# build with DCC32PATH as $DCC32 command uses devtools.exe...
#   $(DCC32) devtools.dpr
    $(DELPHI_MSBUILD) devtools.dproj
#   "$(DCC32PATH)\dcc32.exe" -Q -B -E. -NSVcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Web;Soap;Winapi;System.Win devtools.dpr
    $(COPY) $(WIN32_TARGET_PATH)\devtools.exe $(PROGRAM)\buildtools

test-releasebuildcheck: build
    $(PROGRAM)\buildtools\devtools.exe -rt

clean: def-clean

!include ..\..\Target.mak
