- rm -rf doc/html/*
-
-test:
- runghc -i"src" test/TestSuite.hs
-
-
-src_html:
- util/hscolour_srcs
-
-
-DOCS := -i /usr/share/doc/ghc-6.12.3/html/libraries/base-4.2.0.2/base.haddock
-DOCS += -i /usr/share/doc/storable-complex-0.2.1/html/storable-complex.haddock
-DOCS += -i /usr/share/doc/quickcheck-2.1.0.3/html/QuickCheck.haddock
-DOCS += -i /usr/share/doc/hmatrix-0.11.0.4/html/hmatrix.haddock
-DOCS += -i /usr/share/doc/hunit-1.2.0.3/html/HUnit.haddock
-
-doc: src_html
- haddock $(DOCS) --html --use-unicode \
- --odir=doc/html/ --title="spline3" \
- --source-module="src/%{MODULE/.//}.html" \
- --source-entity="src/%{MODULE/.//}.html#%{NAME}" \
- src/*.hs src/Tests/*.hs
+ rm -rf .hpc
+
+test: $(BIN) $(DOCTESTS_BIN) $(TESTSUITE_BIN)
+ runghc Setup.hs test
+
+dist:
+ runghc Setup.hs configure
+ runghc Setup.hs sdist
+
+# Neither 'haddock' nor 'hscolour' seem to work properly.
+doc: src/*.hs
+ runghc Setup.hs configure --user --flags=${FLAGS}
+ 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)