X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailbox-count.git;a=blobdiff_plain;f=makefile;h=420039b64e75f02396647aa8f5d0846f5077d4df;hp=6a99594b9b3afb28aec8d8b378a2a2f6f5add8da;hb=31fe23ca831165da495cf4b99139f2e544b0dacd;hpb=746917e0b34ab6a581daf6437d3c89fabe0ed4d0 diff --git a/makefile b/makefile index 6a99594..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,12 +33,12 @@ 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}" check: $(BIN) $(TESTSUITE_BIN) $(DOCTESTS_BIN) runghc Setup.hs test