2 BIN = dist/build/$(PN)/$(PN)
3 SRCS := $(shell find src/ -type f -name '*.hs')
5 BIN = dist/build/spline3/spline3
6 DOCTESTS_BIN = dist/build/doctests/doctests
7 TESTSUITE_BIN = dist/build/testsuite/testsuite
9 .PHONY : test doc dist hlint
11 $(BIN): $(PN).cabal $(SRCS)
12 runghc Setup.hs configure \
18 $(DOCTESTS_BIN): $(SRCS) test/Doctests.hs
19 runghc Setup.hs configure \
26 $(TESTSUITE_BIN): $(SRCS) test/TestSuite.hs
27 runghc Setup.hs configure \
34 llvm: $(PN).cabal $(SRCS)
38 runghc Setup.hs configure \
41 --enable-executable-profiling
50 test: $(PN).cabal $(TESTSUITE_BIN) $(DOCTESTS_BIN) $(BIN)
54 runghc Setup.hs configure --prefix=/
55 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
59 dist/doc: $(PN).cabal $(SRCS)
60 runghc Setup.hs configure --user --prefix=/ --flags=${FLAGS}
61 runghc Setup.hs hscolour --all
62 runghc Setup.hs haddock --all \
64 --haddock-options="--ignore-all-exports"
67 hlint --ignore="Use camelCase" \
68 --ignore="Redundant bracket" \