Commit | Line | Data |
---|---|---|
18764f27 DW |
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 | ||
05cd8125 | 7 | all: test generate-combined generate-documentation |
c0db98ca RK |
8 | |
9 | clean: | |
05cd8125 | 10 | @echo cleaning... |
c0db98ca | 11 | @cp .dygraph-combined-clean.js dygraph-combined.js |
c97b87c2 | 12 | rm -f docs/options.html |
18764f27 DW |
13 | |
14 | generate-combined: | |
15 | @echo Generating dygraph-combined.js | |
71ac4733 AV |
16 | @./generate-combined.sh |
17 | ||
05cd8125 RK |
18 | generate-documentation: |
19 | @echo Generating docs/options.html | |
20 | @./generate-documentation.py > docs/options.html | |
21 | @chmod a+r docs/options.html | |
22 | ||
71ac4733 AV |
23 | gwt: generate-gwt |
24 | ||
25 | generate-gwt: | |
26 | @echo Generating GWT JAR file | |
27 | @./generate-jar.sh | |
86a3e64f DV |
28 | |
29 | test: | |
30 | @./test.sh | |
c0db98ca | 31 | |
8ae63530 RK |
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 | ||
c0db98ca RK |
41 | lint: |
42 | @./lint.sh | |
8bc2eb3a DV |
43 | |
44 | publish: | |
95a08f2a DV |
45 | ./generate-combined.sh |
46 | npm publish | |
47 | git checkout dygraph-combined.js |