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 += -funbox-strict-fields
17 OPTIMIZATIONS += -fexcess-precision
18 OPTIMIZATIONS += -fno-spec-constr-count
20 GHC_OPTS += $(OPTIMIZATIONS)
21 GHC_OPTS += $(GHC_WARNINGS)
22 GHC_OPTS += -odir $(TMPDIR)
23 GHC_OPTS += -hidir $(TMPDIR)
27 GHC_OPTS += -o bin/${BIN}
30 .PHONY : test publish_doc doc src_html hlint
33 ghc -optc-O3 -optc-march=native $(GHC_OPTS) src/*.hs
36 ghc -fllvm -optlo-O3 -optlc-O3 $(GHC_OPTS) src/*.hs
39 GHC_OPTS="-prof -auto-all -caf-all" make
41 profile-llvm: src/*.hs
42 GHC_OPTS="-fllvm -prof -auto-all -caf-all" make llvm
55 runghc -i"src" test/TestSuite.hs
62 DOCS := -i /usr/share/doc/ghc-*/html/libraries/base-*/base.haddock
63 DOCS += -i /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/ghc-prim.haddock
64 DOCS += -i /usr/share/doc/ghc-*/html/libraries/haskell98-*/haskell98.haddock
65 DOCS += -i /usr/share/doc/quickcheck-*/html/QuickCheck.haddock
66 DOCS += -i /usr/share/doc/hunit-*/html/HUnit.haddock
67 DOCS += -i /usr/share/doc/test-framework-*/html/test-framework.haddock
68 DOCS += -i /usr/share/doc/repa-*/html/repa.haddock
69 DOCS += -i /usr/share/doc/vector-*/html/vector.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/test-framework-*/html/*.html
78 HTMLS += /usr/share/doc/vector-*/html/*.html
79 HTMLS += /usr/share/doc/repa-*/html/*.html
81 HSCOLOUR_SRCS := /usr/share/doc/ghc-*/html/libraries/base-*/src/*
82 HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/src/*
83 HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/src/*
84 HSCOLOUR_SRCS += /usr/share/doc/test-framework-*/html/src/*
85 HSCOLOUR_SRCS += /usr/share/doc/vector-*/html/src/*
86 HSCOLOUR_SRCS += /usr/share/doc/repa-*/html/src/*.html
89 cp -n $(HTMLS) ./doc/html/
90 cp -n $(HSCOLOUR_SRCS) ./doc/html/src/
91 haddock $(DOCS) --html --use-unicode \
92 --odir=doc/html/ --title="spline3" \
93 --source-module="src/%{MODULE/.//}.html" \
94 --source-entity="src/%{MODULE/.//}.html#%{NAME}" \
97 SSH_USER=root@michael.orlitzky.com
98 PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/
100 rsync -avz -e ssh ./doc/html/ $(SSH_USER):$(PUBLIC_DOCDIR)
103 hlint --ignore="Use camelCase" \
104 --ignore="Redundant bracket" \