2 BIN = dist/build/$(PN)/$(PN)
3 SRCS := $(shell find src/ -type f -name '*.hs')
5 .PHONY : dist doc hlint
7 $(BIN): $(PN).cabal $(SRCS)
9 runghc Setup.hs configure --user --prefix=/
12 profile: $(PN).cabal $(SRCS)
14 runghc Setup.hs configure --user \
15 --enable-executable-profiling \
20 runghc Setup.hs configure --user --prefix=/
21 runghc Setup.hs hscolour --all
22 runghc Setup.hs haddock --all \
24 --haddock-options="--ignore-all-exports"
30 TESTSUITE_BIN = dist/build/testsuite/testsuite
31 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
32 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
33 runghc Setup.hs configure --user --enable-tests --prefix=/
36 test: $(BIN) $(TESTSUITE_BIN)
51 runghc Setup.hs configure --prefix=/
52 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
55 hlint --ignore="Use camelCase" \
56 --ignore="Redundant bracket" \