File: Makefile

package info (click to toggle)
icon 9.5.25a-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,624 kB
  • sloc: ansic: 28,692; cpp: 5,650; yacc: 926; makefile: 882; lisp: 873; sh: 319; sed: 13; php: 1
file content (53 lines) | stat: -rw-r--r-- 953 bytes parent folder | download
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
48
49
50
51
52
53
#  Makefile for testing Icon
.POSIX:


SAMPLES = btrees diffwrds kross meander prefix recogn roman sieve wordcnt



# default is to run all tests, using icont

Test Test-icont:  Test-programs Test-preproc Test-options
		../../bin/icon -V


# test programs

Programs Programs-icont Test-programs:
		sh Test-icon

Samples Samples-icont:
		sh Test-icon $(SAMPLES)


# test preprocessor

Test-preproc:
		../../bin/icont -E tpp.icn tpp9.icn >tpp.out 2>tpp.err || :
		cat tpp.err tpp.out >tpp.all
		cmp tpp.ok tpp.all
		: preprocessor test passed


# test various command options

Test-options:
		sh Test-opts >options.out
		cmp options.ok options.out
		: options test passed


# test garbage collection by forcing small region sizes
# (note: gc2 and kwds will fail)

Test-tiny:
		sh Test-icon 1000 1000


# clean up

Clean:
		-rm -f *.u? *.[chp] foo.baz tmp? *.out *.err *.all
		-rm -f xx \
		`find * -type f -perm -100 ! -name '*.*' ! -name '[MT]*' -print`