home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / CM100EXE.ARJ / CM100EXE.ZIP / SAMPLES / CMDDEF / MAKEFILE < prev    next >
Encoding:
Text File  |  1991-11-17  |  1.1 KB  |  29 lines

  1. /*****************************************************************************
  2. *                              MAKEFILE
  3. *
  4. *  PURPOSE: Concatenate the text files, "source1.txt" and "source2.txt",
  5. *           and sort the resulting file, "target.txt".
  6. *
  7. *  NOTE: None of the comments in this make file are required.  They have
  8. *        been provided to help you understand how CMAKE handles each
  9. *        command.  In other words, this make file could be reduced down to
  10. *        the following command:
  11. *
  12. *        sortsum source1.txt source2.txt target.txt
  13. *
  14. *****************************************************************************/
  15.  
  16. /*****************************************************************************
  17. *                              TARGET.TXT
  18. *
  19. *  The following SORTSUM command will be executed only when one of the
  20. *  following conditions is true:
  21. *
  22. *  1. "target.txt" does not exist.
  23. *  2. "source1.txt" is newer than "target.txt".
  24. *  3. "source2.txt" is newer than "target.txt".
  25. *
  26. *****************************************************************************/
  27.  
  28. sortsum source1.txt source2.txt target.txt
  29.