X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=420039b64e75f02396647aa8f5d0846f5077d4df;hb=a70e43f3ee42517d9e18e69cf482471c626645b6;hp=bdedde5f250079072b1d141356aa230981d43ad4;hpb=65ec33ab24068e50612e72e69d893ecac9079cdc;p=mailbox-count.git diff --git a/makefile b/makefile index bdedde5..420039b 100644 --- a/makefile +++ b/makefile @@ -2,11 +2,20 @@ PN = mailbox-count BIN = dist/build/$(PN)/$(PN) SRCS = $(shell find src/ -type f -name '*.hs') +HCFLAGS += -Weverything \ + -Wno-implicit-prelude \ + -Wno-safe \ + -Wno-unsafe \ + -Wno-all-missed-specialisations \ + -rtsopts \ + -threaded + + .PHONY : dist hlint $(BIN): $(PN).cabal $(SRCS) runghc Setup.hs configure --user - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" doc: $(PN).cabal $(SRCS) runghc Setup.hs hscolour --all @@ -24,14 +33,14 @@ TEST_SRCS := $(shell find test/ -type f -name '*.hs') $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS) runghc Setup.hs configure --user --enable-tests --prefix=/ - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" $(DOCTESTS_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS) runghc Setup.hs configure --user --enable-tests - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" -test: $(BIN) $(TESTSUITE_BIN) $(DOCTESTS_BIN) +check: $(BIN) $(TESTSUITE_BIN) $(DOCTESTS_BIN) runghc Setup.hs test @@ -51,6 +60,6 @@ hlint: clean: runghc Setup.hs clean - find ./ -name '*.prof' -delete - find ./ -name '*.o' -delete - find ./ -name '*.hi' -delete + find ./ -type f -name '*.prof' -delete + find ./ -type f -name '*.o' -delete + find ./ -type f -name '*.hi' -delete