coffee-inline-map
Version:
Compile CoffeeScript files with inline source maps
33 lines (22 loc) • 589 B
Plain Text
COFFEE_COMPILER := ../../../bin/coffee-inline-map
out := ../public
js_temp := \
$(patsubst %.coffee,%.js,$(wildcard *.coffee)) \
$(patsubst %.litcoffee,%.js,$(wildcard *.litcoffee))
bundle := $(out)/bundle.js
all: compile
%.js: %.coffee
$(COFFEE_COMPILER) $< -o $@
%.js: %.litcoffee
$(COFFEE_COMPILER) $< -o $@
depend: compile-js
make-commonjs-depend *js -o js.mk
-include js.mk
compile-js: $(js_temp)
compile: compile-js $(bundle)
$(bundle): main.js
@mkdir -p $(out)
browserify -d $< -o $@
clean:
rm -f js.mk $(js_temp) $(bundle)