Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 531 Bytes
COFFEE = $(shell find src -name "*.coffee")
JS = $(COFFEE:src%.coffee=lib%.js)
all: bin/wach-watchdir $(JS)
lib/%.js : src/%.coffee
./node_modules/.bin/coffee \
--compile \
--lint \
--output lib $<
bin/wach-watchdir: src/watchdir.c
clang \
-Wall \
-framework CoreServices \
-o $@ $<
test : test-support
test-support :
./node_modules/.bin/mocha test/support_test --ui qunit --bail --colors
tag:
git tag v`coffee -e "console.log JSON.parse(require('fs').readFileSync 'package.json').version"`
.PHONY: test tag