home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cproto.zip / cproto46 / testing / makefile < prev    next >
Encoding:
Makefile  |  1998-01-07  |  1.1 KB  |  48 lines

  1. # $Id: makefile,v 4.3 1998/01/08 00:03:33 cthuang Exp $
  2. # make-file for CPROTO test directory
  3.  
  4. THIS    = cproto
  5. B    = ..
  6.  
  7. ####### (Standard Lists) #######################################################
  8. REF_FILES=\
  9.     case01.ref    case02.ref    case03.ref    case04.ref\
  10.     case05.ref    case06.ref    case07.ref    case08.ref\
  11.     case09.ref    case10.ref    case11.ref    case12.ref\
  12.     case13.ref    case14.ref    case15.ref    case16.ref\
  13.     case17.ref    case18.ref    case19.ref    case20.ref\
  14.     case21.ref
  15.  
  16. TESTDATA=\
  17.     run_test.txt\
  18.     syntax.c\
  19.     $(COM_FILES)\
  20.     $(REF_FILES)
  21.  
  22. SCRIPTS    =\
  23.     make_dcl.sh\
  24.     testunix.sh\
  25.     run_test.sh    run_test.com
  26.  
  27. SOURCES    = makefile descrip.mms $(SCRIPTS) $(TESTDATA)
  28.  
  29. ####### (Standard Productions) #################################################
  30. all:    $(SOURCES) $B/$(THIS)
  31.     @echo 'Type "make run_test"'
  32.  
  33. scripts : $(SOURCES)
  34.     make_bat.sh `fgrep dos run_test.txt |sed -e 's/=.*//'`
  35.     make_dcl.sh `fgrep unix run_test.txt |sed -e 's/=.*//'`
  36.  
  37. clean:
  38.     - rm -f *.log *.out *.err *.tmp case*.c
  39.  
  40. distclean: clean
  41.  
  42. realclean: distclean
  43.     - rm -f *.dcl case*.bat
  44.  
  45. run_test:    $(SOURCES)
  46.     date >>$@.out
  47.     sh -c '(./run_test.sh 2>&1)' |tee -a $@.out
  48.