rm -f src/Tests/*.hi
rm -f src/Tests/*.o
rm -f *.prof
- rm -rf doc/*
+ rm -rf doc/html/*
test:
runghc -i"src" test/TestSuite.hs
doc: src_html
haddock $(DOCS) --html --use-unicode \
- --odir=doc/ --title="spline3" \
+ --odir=doc/html/ --title="spline3" \
--source-module="src/%{MODULE/.//}.html" \
--source-entity="src/%{MODULE/.//}.html#%{NAME}" \
src/*.hs src/Tests/*.hs
SRCS=`find ./src -iname '*.hs'`
# We have to create the output directories before we start.
-mkdir -p doc/src/Tests
+mkdir -p doc/html/src/Tests
for file in $SRCS; do
DIRNAME=`dirname $file`
BASENAME=`basename $file .hs`
- OUTFILE="doc/${DIRNAME}/${BASENAME}.html"
+ OUTFILE="doc/html/${DIRNAME}/${BASENAME}.html"
HsColour -html -anchor $file > $OUTFILE
done