| 1 | # Run the generate-combined.sh script. |
| 2 | # This Makefile isn't really necessary, but it serves as a "indicator" |
| 3 | # to new users that they need to do a "build" of sorts. |
| 4 | # |
| 5 | # Dean Wampler <dean@deanwampler.com> March 22, 2010 |
| 6 | |
| 7 | all: test generate-combined generate-documentation |
| 8 | |
| 9 | clean: |
| 10 | @echo cleaning... |
| 11 | @cp .dygraph-combined-clean.js dygraph-combined.js |
| 12 | rm -f docs/options.html |
| 13 | |
| 14 | generate-combined: |
| 15 | @echo Generating dygraph-combined.js |
| 16 | @./generate-combined.sh |
| 17 | |
| 18 | generate-documentation: |
| 19 | @echo Generating docs/options.html |
| 20 | @./generate-documentation.py > docs/options.html |
| 21 | @chmod a+r docs/options.html |
| 22 | |
| 23 | gwt: generate-gwt |
| 24 | |
| 25 | generate-gwt: |
| 26 | @echo Generating GWT JAR file |
| 27 | @./generate-jar.sh |
| 28 | |
| 29 | test: |
| 30 | @./test.sh |
| 31 | |
| 32 | test-combined: move-combined test clean-combined-test |
| 33 | |
| 34 | move-combined: generate-combined |
| 35 | mv dygraph-combined.js dygraph-dev.js |
| 36 | |
| 37 | clean-combined-test: clean |
| 38 | @echo restoring combined |
| 39 | git checkout dygraph-dev.js |
| 40 | |
| 41 | lint: |
| 42 | @./lint.sh |