X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=6e5b0e5c37ce0e0a9a1deb2a4a7b2bcf456b2651;hb=03a49e2a1db26026c86804a73acee025842282db;hp=df34c79710162399f5bc13263f6624b0708f2d76;hpb=401406065b2329ffb591ff952d46b1a4d9207c52;p=dead%2Fhtsn-import.git diff --git a/makefile b/makefile index df34c79..6e5b0e5 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,10 @@ $(BIN): $(PN).cabal $(SRCS) runghc Setup.hs configure --user --prefix=/ runghc Setup.hs build -profile: $(PN).cabal $(SRCS) +# The $(BIN) dependency means that we should build once normally +# before attempting the profiling build (this is required for some +# reason). +profile: $(PN).cabal $(SRCS) $(BIN) runghc Setup.hs configure --user \ --enable-executable-profiling \ --prefix=/ @@ -16,10 +19,16 @@ profile: $(PN).cabal $(SRCS) doc: $(PN).cabal $(SRCS) runghc Setup.hs configure --user --prefix=/ - runghc Setup.hs hscolour --executables - runghc Setup.hs haddock --internal \ - --executables \ - --hyperlink-source + runghc Setup.hs hscolour --all + runghc Setup.hs haddock --all \ + --hyperlink-source \ + --haddock-options="--ignore-all-exports" + + +# The MLB schema is identical to the regular one. +doc/dbschema/MLB_earlylineXML.png: doc/dbschema/earlylineXML.png + cp $< $@ + # # Testing. @@ -38,9 +47,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=/ - runghc Setup.hs sdist + TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist + rm $< hlint: hlint --ignore="Use camelCase" \