home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / SoundAndMusic / Drivers / Makefile
Makefile  |  1992-03-27  |  799b  |  32 lines

  1. #    Makefile for programming examples.
  2. #
  3. #    You can copy all of the examples to your home directory by
  4. #    cd'ing in a Shell or Terminal to this directory and typing
  5. #
  6. #    make installsrc SRCROOT=$HOME/examples
  7. #
  8. #    where $HOME is assumed to expand to your home directory.
  9. #    Then you can make them all by cd'ing to ~/examples and typing
  10. #
  11. #    make all
  12. #
  13.  
  14. SOURCES = Makefile
  15. NESTED_DIRS = MidiDriver
  16.  
  17. all install clean lean output::
  18.     @for i in $(NESTED_DIRS); do \
  19.         (cd ./$$i; echo "$$i:"; \
  20.         make $(MAKE_FLAGS) $@) || exit $? ; done
  21.  
  22. installsrc:: $(SRCROOT)
  23.     tar cf - $(SOURCES) | (cd $(SRCROOT); tar xfp -)
  24.     (cd $(SRCROOT); chmod 644 $(SOURCES))
  25.     @for i in $(NESTED_DIRS); do \
  26.         (cd ./$$i; echo "$$i:"; \
  27.         make $(MAKE_FLAGS) $@ SRCROOT=$(SRCROOT)/$$i) || exit $? ; done
  28.  
  29. $(SRCROOT):
  30.     -mkdirs $(SRCROOT)
  31.  
  32.