X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=dc1c3642e1ae0a40d8e28fdf4dc1ee13433fef7a;hb=dc30cf1f4ebee9f3d97e1e8fe27e2207140ea593;hp=dd568009a096c934169f861d0be3664004273048;hpb=492841535e7a02ef7aa8a53070c45be373da171e;p=spline3.git diff --git a/makefile b/makefile index dd56800..dc1c364 100644 --- a/makefile +++ b/makefile @@ -7,7 +7,7 @@ GHC_WARNINGS += -fwarn-type-defaults 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