X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=723eab3a9128b0f82eeca9390b60f70ec4aa6440;hb=5109e41113a39024ef3fe799abb08de4a2ac74b0;hp=7bbd4672c3c2f31012b099f5fdb2d76f279ea8d3;hpb=c5d0d16488499cc4ac6378217d6ac071baeb458b;p=spline3.git diff --git a/makefile b/makefile index 7bbd467..723eab3 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 @@ -39,7 +39,9 @@ src_html: DOCS := -i /usr/share/doc/ghc-6.12.3/html/libraries/base-4.2.0.2/base.haddock DOCS += -i /usr/share/doc/storable-complex-0.2.1/html/storable-complex.haddock -DOCS += -i /usr/share/doc/hmatrix-0.10.0.1/html/hmatrix.haddock +DOCS += -i /usr/share/doc/quickcheck-2.1.0.3/html/QuickCheck.haddock +DOCS += -i /usr/share/doc/hmatrix-0.11.0.4/html/hmatrix.haddock +DOCS += -i /usr/share/doc/hunit-1.2.0.3/html/HUnit.haddock doc: src_html haddock $(DOCS) --html --use-unicode \ @@ -47,3 +49,9 @@ doc: src_html --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