2 BIN = dist/build/$(PN)/$(PN)
3 SRCS := $(shell find src/ -type f -name '*.hs')
7 $(BIN): $(PN).cabal $(SRCS)
8 runghc Setup.hs configure --user --prefix=/
11 doc: $(PN).cabal $(SRCS)
12 runghc Setup.hs configure --user --prefix=/
13 runghc Setup.hs hscolour --all
14 runghc Setup.hs haddock --all \
16 --haddock-options="--ignore-all-exports"
23 TESTSUITE_BIN = dist/build/testsuite/testsuite
24 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
26 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
27 runghc Setup.hs configure --user --enable-tests --prefix=/
30 test: $(BIN) $(TESTSUITE_BIN)
39 runghc Setup.hs configure --prefix=/
40 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
43 hlint --ignore="Use camelCase" \
44 --ignore="Redundant bracket" \
50 find ./ -name '*.prof' -delete
51 find ./ -name '*.o' -delete
52 find ./ -name '*.hi' -delete