diff --git a/Makefile b/Makefile index 8baea4f..4ad9cb0 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ less: @@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST} @@echo "(function (window, undefined) {" >> ${DIST} @@cat build/require.js\ + build/amd.js\ build/ecma-5.js\ ${SRC}/parser.js\ ${SRC}/functions.js\ diff --git a/build/amd.js b/build/amd.js new file mode 100644 index 0000000..c4b1187 --- /dev/null +++ b/build/amd.js @@ -0,0 +1,6 @@ +// amd.js +// +// Define Less as an AMD module. +if (typeof define === "function" && define.amd) { + define("less", [], function () { return less; } ); +}