X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=dc1c3642e1ae0a40d8e28fdf4dc1ee13433fef7a;hb=dc30cf1f4ebee9f3d97e1e8fe27e2207140ea593;hp=cb7e81f99f7f6aa96a36227eeaecfa69f82b2601;hpb=89b8b6e94fcc944a1f4611811265f3c6217af850;p=spline3.git diff --git a/makefile b/makefile index cb7e81f..dc1c364 100644 --- a/makefile +++ b/makefile @@ -5,9 +5,9 @@ GHC_WARNINGS += -fwarn-name-shadowing GHC_WARNINGS += -fwarn-orphans GHC_WARNINGS += -fwarn-type-defaults -BIN := spline +BIN := spline3 -.PHONY : test doc src_html +.PHONY : test doc src_html hlint $(BIN): src/*.hs ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs @@ -27,7 +27,7 @@ clean: rm -f src/Tests/*.hi rm -f src/Tests/*.o rm -f *.prof - rm -rf doc/* + rm -rf doc/html/* test: runghc -i"src" test/TestSuite.hs @@ -43,7 +43,13 @@ DOCS += -i /usr/share/doc/hmatrix-0.10.0.1/html/hmatrix.haddock doc: src_html haddock $(DOCS) --html --use-unicode \ - --odir=doc/ --title="spline3" \ + --odir=doc/html/ --title="spline3" \ --source-module="src/%{MODULE/.//}.html" \ --source-entity="src/%{MODULE/.//}.html#%{NAME}" \ src/*.hs src/Tests/*.hs + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src