File: Makefile

package info (click to toggle)
haskell-monad-par 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: haskell: 1,583; makefile: 19
file content (32 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (5)
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

# NOTE!! THIS IS REDUNDANT WITH THE CABAL TEST-SUITE IN monad-par.cabal
#
# This is simply an alternative way to run the tests.


# These are HUnit/QuickCheck tests, factored out of their respective files:
SRC = ParTests.hs AListTest.hs AsyncTests.hs TestHelpers.hs Makefile
TESTS= AllTests.hs
EXES= $(TESTS:.hs=.exe)

all: $(EXES) test

.SUFFIXES: .hs .exe

.hs.exe: $< $(SRC)
	ghc -i.. --make $< -o $@ -rtsopts -threaded

deps:
	cabal install QuickCheck HUnit test-framework test-framework-hunit test-framework-quickcheck2 test-framework-th

test:
	@echo
	@echo "Running tests:"
	@echo "=================================="
	./AllTests.exe +RTS -N2
#	"for t in $(EXES); do $t; done"
# 	./ParTests.exe
# 	./AListTest.exe

clean:
	rm -f *.hi *.exe *.o