summaryrefslogtreecommitdiff
path: root/Makefile
blob: fc3ce0fa29ac716c0d56a870d063deaae0e28081 (plain)
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
.PHONY: all
all:
	cabal install

LCDIR=~/.cabal/share/x86_64-linux-ghc-7.10.3/lambdacube-compiler-0.6.0.0/lc

repl:
	cd test && ghci -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -fno-warn-missing-signatures -fno-warn-incomplete-patterns -fno-warn-overlapping-patterns -fno-warn-type-defaults -i../src -i../dist/build/autogen runTests.hs

repllc:
	cd tool && ghci -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -fno-warn-missing-signatures -fno-warn-incomplete-patterns -fno-warn-overlapping-patterns -fno-warn-type-defaults -i../src -i../dist/build/autogen Compiler.hs

copylc:
	cp lc/*.lc $(LCDIR)

coverage:
	./run-test-suite.sh --coverage

profile:
	./run-test-suite.sh --profile

docker-profile:
	docker run --rm -it -v `pwd`:/root/source/lambdacube-compiler lambdacube3d/lambdacube3d /bin/sh -c "/root/source/lambdacube-compiler/travis/profile.sh"

hlint:
	hlint -h tool/HLint.hs src test tool