Switch branches/tags
Nothing to show
Find file Copy path
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\
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}$@
uglifyjs -nc -o ${builddir}$@ ${builddir}gazel.js