home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-12-22 | 568 b | 29 lines |
- # Makefile (DISTRIBUTED_C/examples)
-
- SHELL = /bin/sh
-
- SUBDIRS = buffer hello nullst philo prod_cons test travel
-
- all:
- @echo "building all examples..."
- for name in $(SUBDIRS); \
- do \
- cd $${name}; \
- echo "---------- DIRECTORY $${name} ----------"; \
- make;
- cd ..; \
- done
-
- clean:
- @echo "Cleaning the directory and all subdirectories..."
- -\rm -f dcc dcadmin core *.o
- -find . -name "*.debug" -exec rm {} \;
- -for name in $(SUBDIRS); \
- do \
- echo "----- cleaning subdirectory $${name}"; \
- cd $${name}; \
- make -s clean; \
- cd ..; \
- done
- @echo done!
-