2 BIN = dist/build/$(PN)/$(PN)
3 TESTSUITE_BIN = dist/build/testsuite/testsuite
4 SRCS := $(shell find src/ -type f -name '*.hs')
5 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
9 $(BIN): $(PN).cabal $(SRCS)
10 runghc Setup.hs configure --user --prefix=/
13 profile: $(PN).cabal $(SRCS)
14 runghc Setup.hs configure --user --enable-executable-profiling --prefix=/
17 doc: $(PN).cabal $(SRCS)
18 runghc Setup.hs configure --user --prefix=/
19 runghc Setup.hs hscolour --executables
20 runghc Setup.hs haddock --internal \
30 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
31 runghc Setup.hs configure --user --enable-tests --prefix=/
34 test: $(BIN) $(TESTSUITE_BIN)
38 runghc Setup.hs configure --prefix=/
42 hlint --ignore="Use camelCase" \
43 --ignore="Redundant bracket" \