home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Makefiles / lib / Makefile.util < prev   
Encoding:
Makefile  |  1994-01-06  |  724 b   |  27 lines

  1. # Makefile.util
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. ##################### Dependencies #####################
  12.  
  13. #  The depend target scans the source files for includes and generates
  14. #  the right dependencies to reflect those inter-file dependencies.
  15. #$(PRODUCT): .depend_done
  16.  
  17. depend .depend_done::
  18.     @if [ "`$(ECHO) $(DERIVED_SRC)`" ]    ; then        \
  19.         $(MAKE) $(DERIVED_SRC);            \
  20.     fi
  21.     -$(RM) -f Makefile.depends
  22.     -$(TOUCH) Makefile.depends
  23.     $(CC) -MD -E $(CFLAGS) $(MFILES) $(CFILES) $(SFILES) $(DERIVED_SRC) \
  24.         > /dev/null
  25.     @md -m Makefile.depends -d $(DFILES)
  26.     -$(TOUCH) .depend_done
  27.