From fb315c6f618d8b1635442c70964f7ab14e53385e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 8 Dec 2010 14:52:26 -0800 Subject: 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. --- plugins/Mapstraction/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/Mapstraction/Makefile (limited to 'plugins/Mapstraction/Makefile') 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 -- cgit v1.2.3-54-g00ecf