tumble/Makefile

19 lines
365 B
Makefile
Raw Normal View History

.PHONY: lib test
2013-03-05 23:25:53 +00:00
lib_sources:= $(wildcard src/*.coffee)
lib_objects:= $(subst src/, lib/, $(lib_sources:%.coffee=%.js))
2013-03-05 23:25:53 +00:00
default: build
build: $(lib_objects)
2013-03-05 23:25:53 +00:00
$(lib_objects): lib/%.js: src/%.coffee
@mkdir -p $(@D)
2013-03-05 23:25:53 +00:00
coffee -o $(@D) -c $<
2013-03-06 17:57:12 +00:00
test: test/[0-9]*_mocha.coffee
./node_modules/.bin/mocha -C --compilers coffee:coffee-script -u tdd $<
2013-03-05 23:25:53 +00:00
clean:
rm -fr lib