--prefix=/
runghc Setup.hs build
-doc: $(PN).cabal $(SRCS)
+dist/doc: $(PN).cabal $(SRCS)
runghc Setup.hs configure --user --prefix=/
runghc Setup.hs hscolour --all
runghc Setup.hs haddock --all \
--hyperlink-source \
--haddock-options="--ignore-all-exports"
+doc: dist/doc
+
+
+# The MLB schema is identical to the regular one.
+doc/dbschema/MLB_earlylineXML.png: doc/dbschema/earlylineXML.png
+ cp $< $@
+
+
#
# Testing.
#
#
# Misc.
#
-dist:
+
+# Only generate MLB_earlylineXML.png long enough to create
+# the tarball.
+dist: doc/dbschema/MLB_earlylineXML.png
runghc Setup.hs configure --prefix=/
TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
+ rm $<
hlint:
hlint --ignore="Use camelCase" \