X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=Makefile;h=2047c7fa1c0112044788c417ecc3beb7dd77b30a;hb=33b5c4b245bf29f3e908931bf70dde00b5fc8a51;hp=6a645a532b20ffbd4149fca272f181a43868550f;hpb=e26b71566419e1c051f3fbd1f4f8f64b063a04c9;p=dygraphs.git diff --git a/Makefile b/Makefile index 6a645a5..2047c7f 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,22 @@ # # Dean Wampler March 22, 2010 -all: generate-combined +all: test generate-combined generate-documentation + +clean: + @echo cleaning... + @cp .dygraph-combined-clean.js dygraph-combined.js + rm -f 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: @@ -18,3 +28,21 @@ generate-gwt: test: @./test.sh + @./check-combined-unaffected.sh + +test-combined: move-combined test clean-combined-test + +move-combined: generate-combined + mv dygraph-combined.js dygraph-dev.js + +clean-combined-test: clean + @echo restoring combined + git checkout dygraph-dev.js + +lint: + @./lint.sh + +publish: + ./generate-combined.sh + npm publish + git checkout dygraph-combined.js