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.

48 lines
1.1 KiB

  1. BEGIN {
  2. FS="\t"
  3. printf "MYROOT=..\n\n"
  4. printf "MYRET=nash_r\n"
  5. printf "MYDEB=nash_d\n"
  6. printf "MYTST=nash_t\n\n"
  7. printf "!if \"$(CLEANONLY)\" != \"\"\n"
  8. printf "MYCLEAN = cleanall\n"
  9. printf "MYRET=\n"
  10. printf "MYDEB=\n"
  11. printf "MYTST=\n"
  12. printf "!endif\n\n"
  13. printf "!if" " \"$(clean)\" " "==" " \"on\""
  14. printf "\nMYCLEAN = cleanall\n"
  15. printf "!endif\n\n"
  16. nmaker = "nmake"
  17. myclean = "$(MYCLEAN)"
  18. myroot= "$(MYROOT)"
  19. myret = "$(MYRET)"
  20. printf "all: retail debug test\n\n"
  21. printf "retail:\n"
  22. printf
  23. }
  24. {
  25. if (NR > 2 && $3 != "" && $4 ~ /[Yy]/ && $0 !~ /^;/)
  26. {
  27. split ( $3, arr, "\\" )
  28. if ( arr["4"] != "" )
  29. {
  30. homeDir = arr["3"]"\\"arr["4"]
  31. if ( $5 != "" && $5 != "." && $5 != "copy" )
  32. printf "\tcd %s\n\t%s %s %s\n\tcd ..\%s\n\n", homeDir, nmaker, myclean, myret, myroot
  33. }
  34. else
  35. {
  36. homeDir = arr["3"]
  37. if ( $5 != "" && $5 != "." && $5 != "copy" )
  38. printf "\tcd %s\n\t%s %s %s\n\tcd %s\n\n", homeDir, nmaker, myclean, myret, myroot
  39. }
  40. }
  41. }