X-Git-Url: https://gitweb.michael.orlitzky.com/?p=spline3.git;a=blobdiff_plain;f=makefile;fp=makefile;h=12779b2d5b595087246cfcd8d425333d5a879d6d;hp=8c0aab460b1751ff09945b9e2a2bbbf161f5f261;hb=c4fdda23861b2a9803e8743dac71211eb24ae372;hpb=5c2eba920c99d5a8575f1de9ab6ef058a2d416e8 diff --git a/makefile b/makefile index 8c0aab4..12779b2 100644 --- a/makefile +++ b/makefile @@ -6,19 +6,33 @@ BIN = dist/build/spline3/spline3 DOCTESTS_BIN = dist/build/doctests/doctests TESTSUITE_BIN = dist/build/testsuite/testsuite +# Append these warnings to the HCFLAGS environment variable that gets +# passed as options to GHC. We want to see the warnings while developing +# but don't want them hard-coded in the cabal file for end users. +HCFLAGS += -Weverything \ + -Wno-implicit-prelude \ + -Wno-safe \ + -Wno-unsafe \ + -Wno-all-missed-specialisations \ + -Wno-prepositive-qualified-module \ + -Wno-missing-safe-haskell-mode \ + -Wno-missing-deriving-strategies \ + -rtsopts \ + -threaded + .PHONY : test doc dist hlint $(BIN): $(PN).cabal $(SRCS) runghc Setup.hs configure --user --prefix=/ - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" $(DOCTESTS_BIN): $(SRCS) test/Doctests.hs runghc Setup.hs configure --user --prefix=/ --enable-tests - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" $(TESTSUITE_BIN): $(SRCS) test/TestSuite.hs runghc Setup.hs configure --user --prefix=/ --enable-tests - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" clean: runghc Setup.hs clean