]> gitweb.michael.orlitzky.com - email-validator.git/blobdiff - makefile
Update the description in the man page.
[email-validator.git] / makefile
index 4d37b72f961936c947ad3cf291d42ee1d135b6aa..8d802d27d5cc8642b5854e7d6be8e862dc6cea41 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
-BIN           = dist/build/email_validator/email_validator
+BIN           = dist/build/email-validator/email-validator
 TESTSUITE_BIN = dist/build/testsuite/testsuite
 
-.PHONY : test
+.PHONY : test dist hlint
 
 $(BIN): src/*.hs
        runghc Setup.hs clean
@@ -13,6 +13,13 @@ profile: src/*.hs
        runghc Setup.hs configure --user --enable-executable-profiling
        runghc Setup.hs build
 
+doc: src/*.hs
+       runghc Setup.hs configure --user
+       runghc Setup.hs hscolour --executables
+       runghc Setup.hs haddock --internal    \
+                               --executables \
+                               --hyperlink-source
+
 clean:
        runghc Setup.hs clean
 
@@ -27,3 +34,9 @@ test: $(BIN) $(TESTSUITE_BIN)
 dist:
        runghc Setup.hs configure
        runghc Setup.hs sdist
+
+hlint:
+       hlint --ignore="Use camelCase"     \
+             --ignore="Redundant bracket" \
+             --color                      \
+             src