Add generate-documentation.sh to Makefile.
authorRobert Konigsberg <konigsberg@google.com>
Tue, 4 Dec 2012 02:53:03 +0000 (21:53 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 4 Dec 2012 02:53:03 +0000 (21:53 -0500)
We should remove some of the Makefile/script duplication.

Makefile

index b5e812d..007468e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,15 +4,22 @@
 #
 # Dean Wampler <dean@deanwampler.com> March 22, 2010
 
-all: test generate-combined
+all: test generate-combined generate-documentation
 
 clean:
+       @echo cleaning...
        @cp .dygraph-combined-clean.js dygraph-combined.js
+       rm docs/options.html
 
 generate-combined:
        @echo Generating dygraph-combined.js
        @./generate-combined.sh
 
+generate-documentation:
+       @echo Generating docs/options.html
+       @./generate-documentation.py > docs/options.html
+       @chmod a+r docs/options.html
+
 gwt: generate-gwt
 
 generate-gwt: