Source code of Windows XP (NT5)
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.

87 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
  7. echobldmsg:
  8. !IF "$(BUILDMSG)" != ""
  9. @echo.
  10. @echo $(BUILDMSG)
  11. !ENDIF
  12. cleanup: nuke_binaries
  13. clean: cleanup set_builddate set_buildnum DelPub all
  14. quietclean: quiet_revert_public cleanup set_builddate set_buildnum 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. @echo QfeNumber:
  28. @type $(BASEDIR)\__qfenum__
  29. binplace $(BASEDIR)\__qfenum__
  30. revert_public:
  31. -revert_public.cmd
  32. quiet_revert_public:
  33. -revert_public.cmd -NoInteract
  34. !ifdef BUILD_SCORCH_SAVE_PATH
  35. SCORCH_SWITCHES=-save=$(BUILD_SCORCH_SAVE_PATH)
  36. SCORCH_MSG1=@echo BUILDMSG: Saving extra files in: $(BUILD_SCORCH_SAVE_PATH)
  37. !endif
  38. !ifdef BUILD_SCORCH_ONLY_THIS_ARCH
  39. SCORCH_SWITCHES=-arch=$(TARGET_DIRECTORY) $(SCORCH_SWITCHES)
  40. SCORCH_MSG2=@echo BUILDMSG: Only deleting files for $(TARGET_DIRECTORY) architecture
  41. !endif
  42. scorch_source:
  43. @echo BUILDMSG: Removing all r/w files from the source tree.
  44. $(SCORCH_MSG1)
  45. $(SCORCH_MSG2)
  46. @perl $(RAZZLETOOLPATH)\scorch.pl -scorch=. $(SCORCH_SWITCHES)
  47. nuke_binaries:
  48. !if "$(_NTTREE)" != ""
  49. # @echo BUILDMSG: Cleaning out $(_NTTREE) - Please wait
  50. # -rd /s /q $(_NTTREE)
  51. # @-md $(_NTTREE)
  52. # Mark the binaries tree with the correct acls
  53. !if !defined(OFFICIAL_BUILD_MACHINE) && !defined(BUILD_OFFLINE)
  54. !if exists($(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt)
  55. @-razacl /SDDLfile:$(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt /root:$(_NTTREE)
  56. !else
  57. @-razacl /SDDLfile:$(RAZZLETOOLPATH)\binariesacl.txt /root:$(_NTTREE)
  58. !endif
  59. !endif
  60. # Mark the symbols and symbols.pri dirs as compressed by default.
  61. @-md $(_NTTREE)\symbols
  62. @-echo foo > $(_NTTREE)\symbols\sym.txt
  63. @-md $(_NTTREE)\symbols.pri
  64. @-echo foo > $(_NTTREE)\symbols.pri\sym.txt
  65. @-compact /q /c /s $(_NTTREE)\symbols
  66. @-compact /q /c /s $(_NTTREE)\symbols.pri
  67. @-del $(_NTTREE)\symbols\sym.txt
  68. @-del $(_NTTREE)\symbols.pri\sym.txt
  69. !endif
  70. DelPub:
  71. -SubmitNewPublicFiles.cmd Delete