home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 529b.lha / BMake_v1.1 / INCL-Makefile < prev    next >
Encoding:
Makefile  |  1991-07-03  |  554 b   |  35 lines

  1. #    Test the .include directive.
  2. #
  3.  
  4. .INCLUDE TEST-Makefile
  5.  
  6. foobar:
  7.     @echo "Let's see if the WILD variable is still here..."
  8.     @echo "$(WILD)"
  9.  
  10. .DEFAULT:
  11.     @echo "$@ has no rule, so we use the .DEFAULT rule"
  12.  
  13. # BART := simpson
  14. CO := co
  15. %.c : RCS/%.c,v
  16.     $(CO) -u $@
  17.  
  18. PAT := $(patsubst pre%post,a%b,dogfood preAApost)
  19.  
  20. rcstest: foobar.c ugly.none
  21.     if def(BART)
  22.     @echo "don't have a cow, man!"
  23.     else
  24.     @echo "foobar.c check out by RCS"
  25.     endif
  26.     @echo "$(PAT)"
  27.  
  28.  
  29. exists:
  30.     if exists(foobar.c)
  31.         @echo "foobar.c exists"
  32.     else
  33.         @echo "foobar.c doesn't exist"
  34.     endif
  35.