windows-nt/Source/XPSP1/NT/makefil0

88 lines
2.5 KiB
Plaintext
Raw Normal View History

2020-09-26 00:33:54 -05:00
#
# 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
echobldmsg:
!IF "$(BUILDMSG)" != ""
@echo.
@echo $(BUILDMSG)
!ENDIF
cleanup: nuke_binaries
clean: cleanup set_builddate set_buildnum DelPub all
quietclean: quiet_revert_public cleanup set_builddate set_buildnum 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__
@echo QfeNumber:
@type $(BASEDIR)\__qfenum__
binplace $(BASEDIR)\__qfenum__
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
# Mark the symbols and symbols.pri dirs as compressed by default.
@-md $(_NTTREE)\symbols
@-echo foo > $(_NTTREE)\symbols\sym.txt
@-md $(_NTTREE)\symbols.pri
@-echo foo > $(_NTTREE)\symbols.pri\sym.txt
@-compact /q /c /s $(_NTTREE)\symbols
@-compact /q /c /s $(_NTTREE)\symbols.pri
@-del $(_NTTREE)\symbols\sym.txt
@-del $(_NTTREE)\symbols.pri\sym.txt
!endif
DelPub:
-SubmitNewPublicFiles.cmd Delete