home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / stdwin / Conf / fastmkdep next >
Encoding:
Text File  |  1990-08-08  |  304 b   |  15 lines  |  [TEXT/????]

  1. #! /bin/sh
  2.  
  3. # Update the dependencies of the Makefile in place.
  4. # usage: $0 $(CFLAGS) $(SRCS)
  5.  
  6. {
  7.     sed '/^# DO NOT DELETE THIS LINE/,$d' Makefile &&
  8.     echo &&
  9.     echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' &&
  10.     echo &&
  11.     cc -M $*
  12. } >>Mf.dep &&
  13. mv Makefile Makefile.bak &&
  14. mv Mf.dep Makefile
  15.