File: makefile

package info (click to toggle)
cproto 4.7f-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 804 kB
  • ctags: 656
  • sloc: ansic: 4,017; sh: 2,987; lex: 1,056; yacc: 872; makefile: 232
file content (47 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: makefile,v 4.4 2004/03/09 01:31:56 tom Exp $
# make-file for CPROTO test directory

THIS	= cproto
B	= ..

####### (Standard Lists) #######################################################
REF_FILES=\
	case01.ref	case02.ref	case03.ref	case04.ref\
	case05.ref	case06.ref	case07.ref	case08.ref\
	case09.ref	case10.ref	case11.ref	case12.ref\
	case13.ref	case14.ref	case15.ref	case16.ref\
	case17.ref	case18.ref	case19.ref	case20.ref\
	case21.ref

TESTDATA=\
	run_test.txt\
	syntax.c\
	$(COM_FILES)\
	$(REF_FILES)

SCRIPTS	=\
	make_dcl.sh\
	testunix.sh\
	run_test.sh	run_test.com

SOURCES	= makefile descrip.mms $(SCRIPTS) $(TESTDATA)

####### (Standard Productions) #################################################
all:	$(SOURCES) $B/$(THIS)
	@echo 'Type "make run_test"'

scripts : $(SOURCES)
	make_bat.sh `fgrep dos run_test.txt |sed -e 's/=.*//'`
	make_dcl.sh `fgrep unix run_test.txt |sed -e 's/=.*//'`

clean:
	- rm -f *.log *.out *.err *.tmp case*.c *.dcl

distclean: clean

realclean: distclean
	- rm -f *.dcl case*.bat

run_test:	$(SOURCES)
	date >>$@.out
	sh -c '(./run_test.sh 2>&1)' |tee -a $@.out