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')
7 .PHONY : dist doc hlint
9 $(BIN): $(PN).cabal $(SRCS)
11 runghc Setup.hs configure --user --prefix=/
14 profile: $(PN).cabal $(SRCS)
16 runghc Setup.hs configure --user \
17 --enable-executable-profiling \
22 runghc Setup.hs configure --user --prefix=/
23 runghc Setup.hs hscolour --all
24 runghc Setup.hs haddock --all \
26 --haddock-options="--ignore-all-exports"
34 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
35 runghc Setup.hs configure --user --enable-tests --prefix=/
38 test: $(BIN) $(TESTSUITE_BIN)
42 runghc Setup.hs configure --prefix=/
43 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
46 hlint --ignore="Use camelCase" \
47 --ignore="Redundant bracket" \