Permalink
Browse files

Add title and attribution to compiled JS file.

  • Loading branch information...
1 parent 9aeb870 commit dbed4e32990eb2e3cdc4b9967418fbeb39286a54 @lukemorton committed Feb 10, 2012
Showing with 9 additions and 1 deletion.
  1. +7 −1 Makefile
  2. +2 −0 dist/interlude.js
View
@@ -1,13 +1,19 @@
COFFEE=src/interlude.coffee
DIST=dist
+JS=${DIST}/interlude.js
+
+TITLE="// A safe setInterval Alternative"
+ATTRIBUTION="// Written by Luke Morton and Richard Willis, MIT licensed."
all: js
coffee: ${COFFEE}
js: coffee
@@echo -n "Compiling coffee..."
- @@coffee -c -o ${DIST} ${COFFEE}
+ @@echo ${TITLE} > ${JS}
+ @@echo ${ATTRIBUTION} >> ${JS}
+ @@coffee -p ${COFFEE} >> ${JS}
@@echo " done."
$PHONY: all coffee js
View
@@ -1,3 +1,5 @@
+// A safe setInterval Alternative
+// Written by Luke Morton and Richard Willis, MIT licensed.
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

0 comments on commit dbed4e3

Please sign in to comment.