Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.5 KiB

  1. #
  2. # If BUILDMSG is not defined, the define it as the empty string to make
  3. # the conditionals easier to write.
  4. #
  5. !INCLUDE $(NTMAKEENV)\makefile.plt
  6. all: echobldmsg set_status
  7. echobldmsg:
  8. !IF "$(BUILDMSG)" != ""
  9. @echo.
  10. @echo $(BUILDMSG)
  11. !ENDIF
  12. cleanup: nuke_binaries
  13. clean: cleanup set_builddate set_buildnum set_buildname DelPub all
  14. quietclean: quiet_revert_public cleanup set_builddate set_buildnum set_buildname DelPub all
  15. set_builddate:
  16. !if !defined(BUILD_DATE_SET) || !exists($(BASEDIR)\__blddate__)
  17. @perl $(RAZZLETOOLPATH)\updtnum.pl
  18. !endif
  19. @echo BuildDate:
  20. @type $(BASEDIR)\__blddate__
  21. binplace $(BASEDIR)\__blddate__
  22. set_buildnum:
  23. @perl $(RAZZLETOOLPATH)\genbldno.pl
  24. @echo BuildNumber:
  25. @type $(BASEDIR)\__bldnum__
  26. binplace $(BASEDIR)\__bldnum__
  27. set_buildname:
  28. @perl $(RAZZLETOOLPATH)\makebuildname.pl
  29. @echo BuildName:
  30. @type $(BASEDIR)\buildname.txt
  31. binplace $(BASEDIR)\buildname.txt
  32. set_status:
  33. !if exists($(BASEDIR)\buildname.txt)
  34. @$(RAZZLETOOLPATH)\setbuildstatus.cmd -s:build
  35. !endif
  36. revert_public:
  37. -revert_public.cmd
  38. quiet_revert_public:
  39. -revert_public.cmd -NoInteract
  40. !ifdef BUILD_SCORCH_SAVE_PATH
  41. SCORCH_SWITCHES=-save=$(BUILD_SCORCH_SAVE_PATH)
  42. SCORCH_MSG1=@echo BUILDMSG: Saving extra files in: $(BUILD_SCORCH_SAVE_PATH)
  43. !endif
  44. !ifdef BUILD_SCORCH_ONLY_THIS_ARCH
  45. SCORCH_SWITCHES=-arch=$(TARGET_DIRECTORY) $(SCORCH_SWITCHES)
  46. SCORCH_MSG2=@echo BUILDMSG: Only deleting files for $(TARGET_DIRECTORY) architecture
  47. !endif
  48. scorch_source:
  49. @echo BUILDMSG: Removing all r/w files from the source tree.
  50. $(SCORCH_MSG1)
  51. $(SCORCH_MSG2)
  52. @perl $(RAZZLETOOLPATH)\scorch.pl -scorch=. $(SCORCH_SWITCHES)
  53. nuke_binaries:
  54. !if "$(_NTTREE)" != ""
  55. # @echo BUILDMSG: Cleaning out $(_NTTREE) - Please wait
  56. # -rd /s /q $(_NTTREE)
  57. # @-md $(_NTTREE)
  58. # Mark the binaries tree with the correct acls
  59. !if !defined(OFFICIAL_BUILD_MACHINE) && !defined(BUILD_OFFLINE)
  60. !if exists($(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt)
  61. @-razacl /SDDLfile:$(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt /root:$(_NTTREE)
  62. !else
  63. @-razacl /SDDLfile:$(RAZZLETOOLPATH)\binariesacl.txt /root:$(_NTTREE)
  64. !endif
  65. !endif
  66. @-compact /q /c /s $(_NTTREE)\\
  67. # Mark the symbols and symbols.pri dirs as compressed by default.
  68. @-md $(_NTTREE)\symbols
  69. @-md $(_NTTREE)\symbols.pri
  70. @-compact /q /c /s $(_NTTREE)\symbols\\
  71. @-compact /q /c /s $(_NTTREE)\symbols.pri\\
  72. !endif
  73. DelPub:
  74. -SubmitNewPublicFiles.cmd Delete