Makefile 411 Bytes
Newer Older
1
.PHONY: all sv2v clean test
Zachary Snow committed
2 3 4

all: sv2v

Zachary Snow committed
5
sv2v:
Zachary Snow committed
6
	mkdir -p bin
7
	stack install --install-ghc --local-bin-path bin
Zachary Snow committed
8 9

clean:
Zachary Snow committed
10 11
	stack clean
	rm -rf bin
12 13

test:
14
	(cd test && ./run-all.sh)
Zachary Snow committed
15 16 17 18 19 20 21

coverage:
	stack install --local-bin-path bin --ghc-options=-fhpc
	rm -f test/*/sv2v.tix
	make test
	stack exec hpc -- sum test/*/sv2v.tix --union --output=.hpc/combined.tix
	stack exec hpc -- markup .hpc/combined.tix --destdir=.hpc