X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=ddc01dd693dadf3d547c0dfa3757436f91af12de;hb=f0ae56ce4d5a049d1f51d0300c5e8a5ed0aa93ea;hp=4d37b72f961936c947ad3cf291d42ee1d135b6aa;hpb=9c30c25bb499e843a40062e2bd1e118c515aa159;p=email-validator.git diff --git a/makefile b/makefile index 4d37b72..ddc01dd 100644 --- a/makefile +++ b/makefile @@ -1,24 +1,27 @@ -BIN = dist/build/email_validator/email_validator +PN = email-validator +BIN = dist/build/$(PN)/$(PN) TESTSUITE_BIN = dist/build/testsuite/testsuite -.PHONY : test +.PHONY : test dist hlint -$(BIN): src/*.hs +$(BIN): $(PN).cabal src/*.hs runghc Setup.hs clean runghc Setup.hs configure --user runghc Setup.hs build -profile: src/*.hs - runghc Setup.hs clean - runghc Setup.hs configure --user --enable-executable-profiling - runghc Setup.hs build +doc: src/*.hs + runghc Setup.hs configure --user + runghc Setup.hs hscolour --all + runghc Setup.hs haddock --all \ + --hyperlink-source \ + --haddock-options="--ignore-all-exports" clean: runghc Setup.hs clean -$(TESTSUITE_BIN): src/*.hs test/TestSuite.hs - runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests +$(TESTSUITE_BIN): $(PN).cabal src/*.hs test/*.hs + runghc Setup.hs configure --user --enable-tests runghc Setup.hs build test: $(BIN) $(TESTSUITE_BIN) @@ -27,3 +30,9 @@ test: $(BIN) $(TESTSUITE_BIN) dist: runghc Setup.hs configure runghc Setup.hs sdist + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src