X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=904739deb212ff93d74f26610d977453cd4b3f5a;hb=90a3be4cc1a5ce94130a4e336467a9a205503ba0;hp=4d37b72f961936c947ad3cf291d42ee1d135b6aa;hpb=9c30c25bb499e843a40062e2bd1e118c515aa159;p=email-validator.git diff --git a/makefile b/makefile index 4d37b72..904739d 100644 --- a/makefile +++ b/makefile @@ -1,24 +1,32 @@ -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 +profile: $(PN).cabal 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 +35,9 @@ test: $(BIN) $(TESTSUITE_BIN) dist: runghc Setup.hs configure runghc Setup.hs sdist + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src