295:9202b2f2f7e1
Anton Shestakov <av6@dwimlabs.net>, Tue, 19 Jun 2018 18:56:42 +0800
package.json: not for CoffeeScript 2

next change 301:2d95d63792f0
previous change 293:6635f14613ba

Makefile

Permissions: -rw-r--r--

Other formats: Feeds:
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
.PHONY: all
all: build
.PHONY: devel
devel:
$(npm)
node_modules/.bin/coffee:
$(npm)
js/%.js js/%.js.map: coffee/%.coffee node_modules/.bin/coffee
./node_modules/.bin/coffee -o ./js/ -cm $<
.PHONY: build
build: $(jsfiles) $(mapfiles)