]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Added an hlint makefile target.
[spline3.git] / makefile
index cb7e81f99f7f6aa96a36227eeaecfa69f82b2601..dc1c3642e1ae0a40d8e28fdf4dc1ee13433fef7a 100644 (file)
--- 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