X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=36f07cd14154904f9949690b46d5d4abf7155262;hb=effb6b9a8716ce58fed6c8260c57164601a7df30;hp=84c6d1d0f0f3ff0bd2d304cc710c7313eaf0db93;hpb=f216ea2169204c82fb4fdd5b6ce08ac7bb53a738;p=spline3.git diff --git a/makefile b/makefile index 84c6d1d..36f07cd 100644 --- a/makefile +++ b/makefile @@ -7,7 +7,7 @@ GHC_WARNINGS += -fwarn-type-defaults BIN := spline3 -.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 @@ -68,6 +68,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" \