Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (31 sloc) 980 Bytes
# Set the source directory
srcdir = src/
builddir = build/
# Create the list of modules
modules = ${srcdir}setup.js\
libs/thingjs/thing.js\
${srcdir}uuid.js\
${srcdir}dict.js\
${srcdir}trans.js\
${srcdir}client.js\
${srcdir}discard.js\
${srcdir}error.js\
${srcdir}get.js\
${srcdir}set.js\
${srcdir}incr.js\
${srcdir}decr.js\
${srcdir}del.js\
${srcdir}print.js\
${srcdir}gazel.js\
${srcdir}dbfunctions.js\
all: gazel.js gazel.min.js
# Compress all of the modules into gazel.js
gazel.js: ${modules}
echo "/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */" > ${builddir}$@
echo ${\n} >> ${builddir}$@
echo "(function() {" >> ${builddir}$@
echo "'use strict';" >> ${builddir}$@
cat >> ${builddir}$@ $^
echo "}).call(this);" >> ${builddir}$@
gazel.min.js:
uglifyjs -nc -o ${builddir}$@ ${builddir}gazel.js
Jump to Line
Something went wrong with that request. Please try again.