| 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 | @./check-combined-unaffected.sh |
| 32 | |
| 33 | test-combined: move-combined test clean-combined-test |
| 34 | |
| 35 | move-combined: generate-combined |
| 36 | mv dygraph-combined.js dygraph-dev.js |
| 37 | |
| 38 | clean-combined-test: clean |
| 39 | @echo restoring combined |
| 40 | git checkout dygraph-dev.js |
| 41 | |
| 42 | lint: |
| 43 | @./lint.sh |
| 44 | |
| 45 | publish: |
| 46 | ./generate-combined.sh |
| 47 | npm publish |
| 48 | git checkout dygraph-combined.js |