home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / distributed-c-2.1 / part01 / examples / Makefile
Makefile  |  1993-12-22  |  568b  |  29 lines

  1. # Makefile (DISTRIBUTED_C/examples)
  2.  
  3. SHELL = /bin/sh
  4.  
  5. SUBDIRS = buffer hello nullst philo prod_cons test travel
  6.  
  7. all:  
  8.     @echo "building all examples..."
  9.     for name in $(SUBDIRS); \
  10.     do \
  11.         cd $${name}; \
  12.         echo "---------- DIRECTORY $${name} ----------"; \
  13.         make;
  14.         cd ..; \
  15.     done
  16.  
  17. clean:
  18.     @echo "Cleaning the directory and all subdirectories..."
  19.     -\rm -f dcc dcadmin core *.o 
  20.     -find . -name "*.debug" -exec rm {} \;
  21.     -for name in $(SUBDIRS); \
  22.     do \
  23.         echo "----- cleaning subdirectory $${name}"; \
  24.         cd $${name}; \
  25.         make -s clean; \
  26.         cd ..; \
  27.     done
  28.     @echo done!
  29.