.PHONY : test publish_doc doc src_html hlint
spline3: src/*.hs
runghc Setup.hs clean
runghc Setup.hs configure --user --flags=${FLAGS}
runghc Setup.hs build
llvm: src/*.hs
FLAGS="llvm" make
profile: src/*.hs
runghc Setup.hs configure --user --enable-executable-profiling
runghc Setup.hs build
hpc: src/*.hs
FLAGS="hpc" make
clean:
runghc Setup.hs clean
rm -f dist/
rm -f *.prof
rm -rf .hpc
test:
runghc -i"src" test/TestSuite.hs
src_html:
util/hscolour_srcs
# Neither 'haddock' nor 'hscolour' seem to work properly.
doc: src_html
runghc Setup.hs hscolour --executables
runghc Setup.hs haddock --internal \
--executables \
--hyperlink-source
SSH_USER=root@michael.orlitzky.com
PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/
publish_doc: doc
rsync -avz -e ssh \
./dist/doc/html/spline3/spline3 \
$(SSH_USER):$(PUBLIC_DOCDIR)
hlint:
hlint --ignore="Use camelCase" \
--ignore="Redundant bracket" \
--color \
src