From 3358fd68e113873363e10c390a077edd9a0f409a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 15 Feb 2014 14:29:37 -0500 Subject: [PATCH] Minor makefile cleanups. --- makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/makefile b/makefile index 8d802d2..904739d 100644 --- a/makefile +++ b/makefile @@ -1,31 +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 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 --executables - runghc Setup.hs haddock --internal \ - --executables \ - --hyperlink-source + 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) -- 2.44.2