home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-06-30 | 807 b | 31 lines |
- # Makefile for programming examples.
- #
- # You can copy all of the examples to your home directory by
- # cd'ing in a Shell or Terminal to this directory and typing
- #
- # make installsrc SRCROOT=$HOME/examples
- #
- # where $HOME is assumed to expand to your home directory.
- # Then you can make them all by cd'ing to ~/examples and typing
- #
- # make all
- #
-
- SOURCES = Makefile
- NESTED_DIRS = SoundEditor
-
- all clean lean output::
- @for i in $(NESTED_DIRS); do \
- (cd ./$$i; echo "$$i:"; \
- make $(MAKE_FLAGS) $@) || exit $? ; done
-
- install installsrc:: $(SRCROOT)
- tar cf - $(SOURCES) | (cd $(SRCROOT); tar xfp -)
- (cd $(SRCROOT); chmod 444 $(SOURCES))
- @for i in $(NESTED_DIRS); do \
- (cd ./$$i; echo "$$i:"; \
- make $(MAKE_FLAGS) installsrc SRCROOT=$(SRCROOT)/$$i) || exit $? ; done
-
- $(SRCROOT):
- -mkdirs $(SRCROOT)
-