# # If BUILDMSG is not defined, the define it as the empty string to make # the conditionals easier to write. # !INCLUDE $(NTMAKEENV)\makefile.plt all: echobldmsg set_status echobldmsg: !IF "$(BUILDMSG)" != "" @echo. @echo $(BUILDMSG) !ENDIF cleanup: nuke_binaries clean: cleanup set_builddate set_buildnum set_buildname DelPub all quietclean: quiet_revert_public cleanup set_builddate set_buildnum set_buildname DelPub all set_builddate: !if !defined(BUILD_DATE_SET) || !exists($(BASEDIR)\__blddate__) @perl $(RAZZLETOOLPATH)\updtnum.pl !endif @echo BuildDate: @type $(BASEDIR)\__blddate__ binplace $(BASEDIR)\__blddate__ set_buildnum: @perl $(RAZZLETOOLPATH)\genbldno.pl @echo BuildNumber: @type $(BASEDIR)\__bldnum__ binplace $(BASEDIR)\__bldnum__ set_buildname: @perl $(RAZZLETOOLPATH)\makebuildname.pl @echo BuildName: @type $(BASEDIR)\buildname.txt binplace $(BASEDIR)\buildname.txt set_status: !if exists($(BASEDIR)\buildname.txt) @$(RAZZLETOOLPATH)\setbuildstatus.cmd -s:build !endif revert_public: -revert_public.cmd quiet_revert_public: -revert_public.cmd -NoInteract !ifdef BUILD_SCORCH_SAVE_PATH SCORCH_SWITCHES=-save=$(BUILD_SCORCH_SAVE_PATH) SCORCH_MSG1=@echo BUILDMSG: Saving extra files in: $(BUILD_SCORCH_SAVE_PATH) !endif !ifdef BUILD_SCORCH_ONLY_THIS_ARCH SCORCH_SWITCHES=-arch=$(TARGET_DIRECTORY) $(SCORCH_SWITCHES) SCORCH_MSG2=@echo BUILDMSG: Only deleting files for $(TARGET_DIRECTORY) architecture !endif scorch_source: @echo BUILDMSG: Removing all r/w files from the source tree. $(SCORCH_MSG1) $(SCORCH_MSG2) @perl $(RAZZLETOOLPATH)\scorch.pl -scorch=. $(SCORCH_SWITCHES) nuke_binaries: !if "$(_NTTREE)" != "" # @echo BUILDMSG: Cleaning out $(_NTTREE) - Please wait # -rd /s /q $(_NTTREE) # @-md $(_NTTREE) # Mark the binaries tree with the correct acls !if !defined(OFFICIAL_BUILD_MACHINE) && !defined(BUILD_OFFLINE) !if exists($(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt) @-razacl /SDDLfile:$(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt /root:$(_NTTREE) !else @-razacl /SDDLfile:$(RAZZLETOOLPATH)\binariesacl.txt /root:$(_NTTREE) !endif !endif @-compact /q /c /s $(_NTTREE)\\ # Mark the symbols and symbols.pri dirs as compressed by default. @-md $(_NTTREE)\symbols @-md $(_NTTREE)\symbols.pri @-compact /q /c /s $(_NTTREE)\symbols\\ @-compact /q /c /s $(_NTTREE)\symbols.pri\\ !endif DelPub: -SubmitNewPublicFiles.cmd Delete