summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2013-11-06 06:07:29 +0000
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2013-11-06 06:07:29 +0000
commit8a839df9b1eefe4b1cb22ce37b77d7384ab02c84 (patch)
treed3fcb714cc8a84e9c0cafeadfafbbfe10377e23b
parent0746a87f440fb3b2816797a7b3517a1ce9bf5f72 (diff)
Add support for creating a single, cummulative file
-rw-r--r--src/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..e61f5eb
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,27 @@
+#
+# This make file creates the javascriptrdd.js file
+# that contains all the other library files
+# It also strips out any indentation, to save space
+#
+# While the users can opt to include the single modules
+# having a single file makes for easier development.
+#
+
+all: lib/javascriptrrd.js
+
+lib/javascriptrrd.js: \
+ lib/binaryXHR.js lib/rrdFile.js \
+ lib/rrdFlotSupport.js lib/rrdFlot.js lib/rrdFlotMatrix.js \
+ lib/rrdFilter.js lib/rrdMultiFile.js \
+ lib/rrdFlotAsync.js
+ cat $^ > $@
+
+wlibs: lib/javascriptrrd.wlibs.js
+
+lib/javascriptrrd.wlibs.js: lib/javascriptrrd.js \
+ ../flot/jquery.min.js ../flot/jquery.flot.min.js \
+ ../flot/jquery.flot.selection.min.js ../flot/jquery.flot.tooltip.js
+ cat $^ > $@
+
+clean:
+ rm -f lib/javascriptrrd.js lib/javascriptrrd.wlibs.js