]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add a makefile rule to generate doc/dbschema/MLB_earlylineXML.png.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 25 Jul 2014 07:24:11 +0000 (03:24 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 25 Jul 2014 07:24:11 +0000 (03:24 -0400)
makefile

index 75035159d68c96f2a256c76abb03e6fdb911f4ae..6e5b0e5c37ce0e0a9a1deb2a4a7b2bcf456b2651 100644 (file)
--- a/makefile
+++ b/makefile
@@ -24,6 +24,12 @@ doc: $(PN).cabal $(SRCS)
                                --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.
 #
@@ -41,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=/
        TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
+       rm $<
 
 hlint:
        hlint --ignore="Use camelCase"     \