-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 702 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (23 loc) · 702 Bytes
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
GHC = ghc
GHC_FLAGS = -fforce-recomp -itest -isrc
INCLUDE = --include=Network.SiteCheck.Data --include=Network.SiteCheck.URL --include=Network.SiteCheck --include=Network.SiteCheck.Util --include=Network.SiteCheck.Filter
sitecheck:
$(GHC) -Wall --make -o sitecheck -isrc src/Main.hs
tests:
$(GHC) $(GHC_FLAGS) -fhpc --make -main-is TestSuite test/TestSuite.hs
rm -f TestSuite.tix
./test/TestSuite
hpc-text:
hpc report TestSuite $(INCLUDE)
hpc-markup:
hpc markup TestSuite $(INCLUDE)
open hpc_index.html
cov: tests hpc-markup
clean:
rm -f sitecheck
rm -f test/TestSuite
rm -f `find . -type f -name *.hi`
rm -f `find . -type f -name *.o`
rm -f *.html
rm -f TestSuite.tix
cabal clean