X-Git-Url: http://gitweb.michael.orlitzky.com/?p=numerical-analysis.git;a=blobdiff_plain;f=makefile;h=a333c588cff7bbf37dba22cb19c22827a874e6d3;hp=0ffe8d38935eadc61681a673500d0b98e1419508;hb=be30f3a5a4c10d4a3c9eb42e38e2ce3306d42c85;hpb=61dcb661ee35ff693a9d64d4d21a65791a480a52 diff --git a/makefile b/makefile index 0ffe8d3..a333c58 100644 --- a/makefile +++ b/makefile @@ -7,23 +7,19 @@ SRCS = $(shell find src/ -name '*.hs') .PHONY : test publish_doc doc dist hlint -$(BIN): $(SRCS) - runghc Setup.hs clean - runghc Setup.hs configure --user --flags=${FLAGS} +$(BIN): $(PN).cabal $(SRCS) + runghc Setup.hs configure --user runghc Setup.hs build $(DOCTESTS_BIN): $(SRCS) test/Doctests.hs - runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests + runghc Setup.hs configure --user --enable-tests runghc Setup.hs build -profile: $(SRCS) +profile: $(PN).cabal $(SRCS) runghc Setup.hs configure --user --enable-executable-profiling runghc Setup.hs build -hpc: $(SRCS) - FLAGS="hpc" make - clean: runghc Setup.hs clean rm -f dist/ @@ -34,17 +30,12 @@ clean: test: $(BIN) $(DOCTESTS_BIN) runghc Setup.hs test -dist: - runghc Setup.hs configure - runghc Setup.hs sdist - doc: $(SRCS) runghc Setup.hs configure --user --flags=${FLAGS} - runghc Setup.hs hscolour --executables - runghc Setup.hs haddock --internal \ - --executables \ - --hyperlink-source + runghc Setup.hs hscolour --all + runghc Setup.hs haddock --all \ + --haddock-options="--ignore-all-exports" hlint: hlint --ignore="Use camelCase" \