5 GHC_WARNINGS += -fwarn-hi-shadowing
6 GHC_WARNINGS += -fwarn-missing-signatures
7 GHC_WARNINGS += -fwarn-name-shadowing
8 GHC_WARNINGS += -fwarn-orphans
9 GHC_WARNINGS += -fwarn-type-defaults
10 GHC_WARNINGS += -fwarn-tabs
11 GHC_WARNINGS += -fwarn-incomplete-record-updates
12 GHC_WARNINGS += -fwarn-monomorphism-restriction
13 GHC_WARNINGS += -fwarn-unused-do-bind
16 OPTIMIZATIONS += -fexcess-precision
17 OPTIMIZATIONS += -fno-spec-constr-count
19 GHC_OPTS := $(OPTIMIZATIONS) \
29 .PHONY : test publish_doc doc src_html hlint
32 ghc -optc-O3 -optc-march=native $(GHC_OPTS) src/*.hs
35 ghc -fllvm $(GHC_OPTS) src/*.hs
39 test_src: src/Tests/*.hs
40 ghc $(GHC_OPTS) src/*.hs src/Tests/*.hs
43 ghc -optc-O3 -optc-march=native $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs
45 profile-llvm: src/*.hs
46 ghc -fllvm $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs
56 runghc -i"src" test/TestSuite.hs
63 DOCS := -i /usr/share/doc/ghc-*/html/libraries/base-*/base.haddock
64 DOCS += -i /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/ghc-prim.haddock
65 DOCS += -i /usr/share/doc/ghc-*/html/libraries/haskell98-*/haskell98.haddock
66 DOCS += -i /usr/share/doc/storable-complex-*/html/storable-complex.haddock
67 DOCS += -i /usr/share/doc/quickcheck-*/html/QuickCheck.haddock
68 DOCS += -i /usr/share/doc/hmatrix-*/html/hmatrix.haddock
69 DOCS += -i /usr/share/doc/hunit-*/html/HUnit.haddock
72 HTMLS := /usr/share/doc/ghc-*/html/libraries/base-*/*.html
73 HTMLS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/*.html
74 HTMLS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/*.html
75 HTMLS += /usr/share/doc/quickcheck-*/html/*.html
76 HTMLS += /usr/share/doc/hunit-*/html/*.html
77 HTMLS += /usr/share/doc/storable-complex-*/html/*.html
78 HTMLS += /usr/share/doc/hmatrix-*/html/*.html
80 HSCOLOUR_SRCS := /usr/share/doc/ghc-*/html/libraries/base-*/src/*
81 HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/src/*
82 HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/src/*
83 HSCOLOUR_SRCS += /usr/share/doc/hmatrix-*/html/src/*
86 cp -n $(HTMLS) ./doc/html/
87 cp -n $(HSCOLOUR_SRCS) ./doc/html/src/
88 haddock $(DOCS) --html --use-unicode \
89 --odir=doc/html/ --title="spline3" \
90 --source-module="src/%{MODULE/.//}.html" \
91 --source-entity="src/%{MODULE/.//}.html#%{NAME}" \
92 src/*.hs src/Tests/*.hs
94 SSH_USER=root@michael.orlitzky.com
95 PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/
97 rsync -avz -e ssh ./doc/html/ $(SSH_USER):$(PUBLIC_DOCDIR)
100 hlint --ignore="Use camelCase" \
101 --ignore="Redundant bracket" \