X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=4a1845b6595ffbebdedaf278448cefdde836a285;hb=8de4b2d3f0c6ca7b447f39316f8839ac575d457f;hp=75035159d68c96f2a256c76abb03e6fdb911f4ae;hpb=4a2c8308c637056142c51b31fe35f5f0a643bbd8;p=dead%2Fhtsn-import.git diff --git a/makefile b/makefile index 7503515..4a1845b 100644 --- a/makefile +++ b/makefile @@ -17,13 +17,21 @@ profile: $(PN).cabal $(SRCS) $(BIN) --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. # @@ -41,9 +49,13 @@ test: $(BIN) $(TESTSUITE_BIN) # # 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" \