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)
11 runghc Setup.hs configure --user --prefix=/
14 profile: $(PN).cabal $(SRCS)
16 runghc Setup.hs configure --user --enable-executable-profiling --prefix=/
19 doc: $(PN).cabal $(SRCS)
20 runghc Setup.hs configure --user --prefix=/
21 runghc Setup.hs hscolour --executables
22 runghc Setup.hs haddock --internal \
32 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
33 runghc Setup.hs configure --user --enable-tests --prefix=/
36 test: $(BIN) $(TESTSUITE_BIN)
40 runghc Setup.hs configure --prefix=/
44 hlint --ignore="Use camelCase" \
45 --ignore="Redundant bracket" \