home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / asmhelp.zip / MAKEIT.BAT < prev    next >
DOS Batch File  |  1987-10-30  |  2KB  |  65 lines

  1. : MAKEIT provides flexibility in the use of the Microsoft MAKE utility.
  2. :
  3. : When invoked without parameters, as in:
  4. :
  5. :    MAKEIT
  6. :
  7. : the current directory is searched for a file named MAKEFILE, which, if found
  8. : is assumed to contain the dependency list for MAKE, and control is passed to
  9. : MAKE.  If MAKEFILE is not found in the current directory, MAKEIT terminates
  10. : with an error message.
  11. :
  12. : When invoked with one parameter, as in:
  13. :
  14. :    MAKEIT MAKELIST
  15. :
  16. : that parameter (in this case, MAKELIST) is assumed to be the name of the
  17. : dependency list file, and a search for it is made, with results as in the
  18. : previous invocation.
  19. :
  20. : Regardless of the invocation, while MAKE is executing, all standard output
  21. : is redirected to a file named MAKE.OUT in the current directory.  When MAKE
  22. : is finished, MAKE.OUT is then written to standard output (using MORE) for
  23. : review.  In this way, a record of the session is also written to disk.
  24. :
  25. ECHO OFF
  26. CLS
  27. TIM
  28. DAT
  29. IF "%1"=="" GOTO TEST2
  30. :
  31. IF EXIST %1 GOTO FOUND1
  32. :
  33. ECHO MAKEIT: %1 NOT FOUND
  34. ECHO 
  35. GOTO END
  36. :
  37. :FOUND1
  38. ECHO MAKING %1 ...
  39. TM START /C1 /N /LOG
  40. MAKE %1 > MAKE.OUT
  41. TM STOP /C1 /N /L /LOG >> MAKE.OUT
  42. TM /L /LOG >> MAKE.OUT
  43. ECHO 
  44. GOTO CAT
  45. :
  46. :TEST2
  47. IF EXIST MAKEFILE GOTO FOUND2
  48. :
  49. ECHO MAKEIT: MAKEFILE NOT FOUND
  50. ECHO 
  51. GOTO END
  52. :
  53. :FOUND2
  54. ECHO MAKING MAKEFILE ...
  55. TM START /C1 /N /LOG
  56. MAKE MAKEFILE > MAKE.OUT
  57. TM STOP /C1 /N /L /LOG >> MAKE.OUT
  58. TM /L /LOG >> MAKE.OUT
  59. ECHO 
  60. :
  61. :CAT
  62. MORE MAKE.OUT
  63. :
  64. :END
  65.