Some Makefile fun - * new lint and clean commands, * add test to generate-combined
authorRobert Konigsberg <konigsberg@gmail.com>
Sat, 24 Nov 2012 16:44:08 +0000 (11:44 -0500)
committerRobert Konigsberg <konigsberg@gmail.com>
Sat, 24 Nov 2012 16:47:07 +0000 (11:47 -0500)
.dygraph-combined-clean.js [new file with mode: 0644]
Makefile

diff --git a/.dygraph-combined-clean.js b/.dygraph-combined-clean.js
new file mode 100644 (file)
index 0000000..e6380de
--- /dev/null
@@ -0,0 +1,7 @@
+This is not the file you are looking for.
+A reasonably up-to-date version can be found at http://dygraphs.com/dygraph-combined.js
+
+dygraph-combined.js is a "packed" version of the larger dygraphs JS files. It is
+smaller and loads more quickly, but is harder to debug.
+
+To generate this file, run "make" or generate-combined.sh.
index 6a645a5..b5e812d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,10 @@
 #
 # Dean Wampler <dean@deanwampler.com> March 22, 2010
 
-all: generate-combined
+all: test generate-combined
+
+clean:
+       @cp .dygraph-combined-clean.js dygraph-combined.js
 
 generate-combined:
        @echo Generating dygraph-combined.js
@@ -18,3 +21,6 @@ generate-gwt:
 
 test:
        @./test.sh
+
+lint:
+       @./lint.sh