home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 15a / fondle.zip / FONDLE.DOC next >
Text File  |  1986-08-18  |  2KB  |  53 lines

  1. /* Fondle */
  2.  
  3. ((( a program like TOUCH but uses a list of other files
  4. (((    to find what date/time to set a file to
  5.  
  6. a utility to help out 'MAKE' type programs.
  7.  
  8.  
  9. Copyright 1986 by Nourse Gregg & Browne, Inc.
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.          a problem with nested C header files (.H)
  17.  
  18. When one of the header files is updated, the MAKE utility must
  19. be able to find all the obsolete files dependant on the .H file,
  20. and run some DOS commands to update the 'target' files.
  21. This works fine when the target files are written to by the DOS command,
  22. such as .OBJ file from a compile of a .C file.
  23. But, when a .C file is the target because the .H files that it
  24. depends on have been changed, then I don't write to the .C target file
  25. in the same way as the .OBJ !!!
  26.  
  27. The idea is that, today, when you change a header file, the file date
  28. of the header file is as of today. So logic says that what has really
  29. happened is that the .C file which #includes the header file is now
  30. changed (indirectly) as of today.
  31.  
  32. SO...........
  33.  
  34. if you want to set up these kind of dependancies in your makefile,
  35. then use FONDLE to change the date/time stamp on the target .C file
  36. to be a little ahead of the .H file(s) it is dependant on.
  37.  
  38.  
  39.  
  40. the command format is:
  41.  
  42.  
  43. FONDLE target_file_name depends_on_file_name(s)
  44.  
  45.  
  46.     where:
  47.         target_file_name is the name of the file to be
  48.             updated with a new date/time.
  49.  
  50.         depends_on_file_name is a list of files from which
  51.             the most recent date/time is taken to use
  52.             as the new target_file date/time
  53.