summaryrefslogtreecommitdiff
path: root/plugins/Mapstraction/Makefile
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-08 14:52:26 -0800
committerBrion Vibber <brion@pobox.com>2010-12-08 14:52:26 -0800
commitfb315c6f618d8b1635442c70964f7ab14e53385e (patch)
treeb1a32ce22009a48ea6a63b28826c2d8106e88e4d /plugins/Mapstraction/Makefile
parent34569017ce983248f19426a9b0bfb08b71901b2e (diff)
Create a bundled & minified JS file for Mapstraction's common case (using OpenLayers); this'll avoid waiting on additional script loads for mxn.core.js and mxn.openlayers.core.js, and removes the need to load usermap.js separately as well.
Diffstat (limited to 'plugins/Mapstraction/Makefile')
-rw-r--r--plugins/Mapstraction/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Mapstraction/Makefile b/plugins/Mapstraction/Makefile
new file mode 100644
index 000000000..3b13135ee
--- /dev/null
+++ b/plugins/Mapstraction/Makefile
@@ -0,0 +1,14 @@
+.fake: clean all
+
+TARGETS=usermap-mxn-openlayers.min.js
+
+CORE=js/mxn.js js/mxn.core.js
+USERMAP=usermap.js
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(TARGETS)
+
+usermap-mxn-openlayers.min.js: $(CORE) js/mxn.openlayers.core.js $(USERMAP)
+ cat $+ | yui-compressor -o $@ --type=js