home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Makefiles / driverkit / Makefile.top_driver < prev   
Makefile  |  1994-07-29  |  1KB  |  58 lines

  1. TAR = /usr/bin/gnutar
  2. DSTROOT = /private/tmp/$(NAME)
  3. OBJROOT = /private/tmp/$(NAME).objroot
  4. SYMROOT = /private/tmp/$(NAME).symroot
  5. BUILDIT = `echo ~rc`/bin/buildit
  6.  
  7. bundle::
  8.     @for i in $(BUNDLES) $(TOOLS); do    \
  9.         (cd $$i; $(MAKE));            \
  10.     done
  11.  
  12. clean debug depend::
  13.     @for i in $(BUNDLES) $(TOOLS); do    \
  14.         (cd $$i; $(MAKE) $@); \
  15.     done
  16.     
  17. installsrc::
  18.     @($(TAR) cf - $(OTHERSRCS) PB.project | (cd $(SRCROOT); $(TAR) xf -))
  19.     
  20. install:: installhdrs before_install
  21.  
  22. install installhdrs installsrc::
  23.     @for i in $(BUNDLES) $(TOOLS); do        \
  24.         (cd $$i; $(MAKE) $@                \
  25.             "OBJROOT=$(OBJROOT)/$$i"        \
  26.         "SYMROOT=$(SYMROOT)/$$i"        \
  27.         "DSTROOT=$(DSTROOT)"            \
  28.         "SRCROOT=$(SRCROOT)/$$i"        \
  29.         "RC_CFLAGS=$(RC_CFLAGS)"        \
  30.         "RC_ARCHS=$(RC_ARCHS)");        \
  31.     done
  32.  
  33. install::
  34.     @$(MAKE) after_install             \
  35.             "OBJROOT=$(OBJROOT)"        \
  36.         "SYMROOT=$(SYMROOT)"        \
  37.         "DSTROOT=$(DSTROOT)"        \
  38.         "SRCROOT=$(SRCROOT)"        \
  39.         "RC_CFLAGS=$(RC_CFLAGS)"    \
  40.         "RC_ARCHS=$(RC_ARCHS)"
  41.  
  42. before_install::
  43.  
  44. after_install::
  45.  
  46. install_clean::
  47.     @for i in $(BUNDLES) $(TOOLS); do    \
  48.         (cd $$i; $(MAKE) actual_clean    \
  49.             "OBJROOT=$(OBJROOT)/$$i"    \
  50.         "SYMROOT=$(SYMROOT)/$$i");    \
  51.     done
  52.  
  53. buildit::
  54.     $(BUILDIT) . $(RC_ARCHS)
  55.  
  56. buildit_again::
  57.     $(BUILDIT) . noclean noverify nosum noinstallhdrs noinstallsrc $(RC_ARCHS)
  58.