--- a/Makefile Mon Oct 30 11:56:07 2017 +0800
+++ b/Makefile Wed Nov 01 00:50:57 2017 +0800
+coffeefiles := $(wildcard coffee/*.coffee)
+jsfiles := $(coffeefiles:coffee/%.coffee=js/%.js)
+mapfiles := $(jsfiles:.js=.js.map)
+npm := npm update && sed -i -e 's@^\#!/usr/bin/env node$$@&js@' ./node_modules/coffee-script/bin/coffee
- sed -i -e 's@^#!/usr/bin/env node$$@&js@' ./node_modules/coffee-script/bin/coffee
+node_modules/.bin/coffee:
+js/%.js js/%.js.map: coffee/%.coffee node_modules/.bin/coffee
+ ./node_modules/.bin/coffee -o ./js/ -cm $<
- ./node_modules/.bin/coffee -o ./js/ -cm ./coffee/
+build: $(jsfiles) $(mapfiles)