X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=22a98a7d95d7ea1e7ff692994ca5bf6c505fa0ee;hb=cb5b361ea78acd6f8c04cd864adc15edd90299db;hp=84c6d1d0f0f3ff0bd2d304cc710c7313eaf0db93;hpb=f216ea2169204c82fb4fdd5b6ce08ac7bb53a738;p=spline3.git diff --git a/makefile b/makefile index 84c6d1d..22a98a7 100644 --- a/makefile +++ b/makefile @@ -4,28 +4,39 @@ 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 \ + -o bin/${BIN} -.PHONY : test doc src_html hlint + +.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/* @@ -68,6 +79,11 @@ doc: src_html --source-entity="src/%{MODULE/.//}.html#%{NAME}" \ src/*.hs src/Tests/*.hs +SSH_USER=root@michael.orlitzky.com +PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/ +publish_doc: doc + rsync -avz -e ssh ./doc/html/ $(SSH_USER):$(PUBLIC_DOCDIR) + hlint: hlint --ignore="Use camelCase" \ --ignore="Redundant bracket" \