X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=6820e5a50020c27d2e5ebf9a04f05b8f5a55177f;hb=6b331ce746d10e9fe180b7c8ecc75988b24da535;hp=2a70a3178d04681aa517945a993d5498d5ed56d8;hpb=dacff1753db6ba443d9c7c72e46eebd96941cb90;p=spline3.git diff --git a/makefile b/makefile index 2a70a31..6820e5a 100644 --- a/makefile +++ b/makefile @@ -4,28 +4,40 @@ GHC_WARNINGS += -fwarn-missing-signatures GHC_WARNINGS += -fwarn-name-shadowing GHC_WARNINGS += -fwarn-orphans GHC_WARNINGS += -fwarn-type-defaults +GHC_WARNINGS += -fwarn-tabs +GHC_WARNINGS += -fwarn-incomplete-record-updates +GHC_WARNINGS += -fwarn-monomorphism-restriction +GHC_WARNINGS += -fwarn-unused-do-bind BIN := spline3 +TMPDIR := /tmp +GHC_OPTS := $(GHC_WARNINGS) \ + -odir $(TMPDIR) \ + -hidir $(TMPDIR) \ + --make \ + -rtsopts \ + -threaded \ + -fno-spec-constr-count \ + -o bin/${BIN} + .PHONY : test publish_doc doc src_html hlint $(BIN): src/*.hs - ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs + ghc -O2 $(GHC_OPTS) src/*.hs all: $(BIN) test_src test_src: src/Tests/*.hs - ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs src/Tests/*.hs + ghc -O2 $(GHC_OPTS) src/*.hs src/Tests/*.hs profile: src/*.hs - ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs + ghc -O2 $(GHC_OPTS) -prof -auto-all src/*.hs clean: rm -f bin/$(BIN) - rm -f src/*.hi - rm -f src/*.o - rm -f src/Tests/*.hi - rm -f src/Tests/*.o + rm -f $(TMPDIR)/*.hi + rm -f $(TMPDIR)/*.o rm -f *.prof rm -rf doc/html/* @@ -71,7 +83,7 @@ doc: src_html SSH_USER=root@michael.orlitzky.com PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/ publish_doc: doc - rsync -avz -e ssh $(SSH_USER):$(PUBLIC_DOCDIR) ./doc/html/ + rsync -avz -e ssh ./doc/html/ $(SSH_USER):$(PUBLIC_DOCDIR) hlint: hlint --ignore="Use camelCase" \