File: Makefile

package info (click to toggle)
nice 0.9.13-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,284 kB
  • ctags: 6,893
  • sloc: java: 42,767; xml: 3,508; lisp: 1,084; sh: 742; makefile: 670; cpp: 21; awk: 3
file content (26 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (4)
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
TOP=${PWD}
GJTK=/usr/local/opt/gjtk/bin

all: report

instrumented.jar: ../share/java/nice.jar
	cp ../share/java/nice.jar instrumented.jar
	${GJTK}/ijar -file instrumented.jar -cvg $(TOP) -branch 'nice.**' 'bossa.**' 'mlsub.**' -none nice.tools.compiler.fun nice.getopt.dispatch 'nice.tools.compiler.fun\$$compile' nice.lang.fun 'nice.doc.fun\$$printMan' nice.getopt.fun nice.tools.ast.fun 'nice.getopt.fun\$$parse' nice.tools.compiler.fun 'mlsub.compilation.**'

tests:
	rm -f *.cvg
	$(MAKE) testsuite regtest

testsuite: instrumented.jar
	java -Dassertions=true -classpath instrumented.jar nice.tools.testsuite.TestNice ../testsuite

regtest: instrumented.jar
	mkdir -p bin
	cp ../bin/nicec bin
	mkdir -p share/java
	ln -sf ../../instrumented.jar share/java/nice.jar
	cd ../regtest; CLASSPATH=$(TOP)/instrumented.jar NICE_TOP=$(TOP) ./regtest 

.PHONY: report
report: tests
	CLASSPATH=instrumented.jar ${GJTK}/gjreport -source ../src:../stdlib -html report -method