-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 737 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SRC = $(shell find src -name "*.coffee" -type f | sort)
LIB = $(SRC:src/%.coffee=lib/%.js)
COFFEE=node_modules/.bin/coffee --js
MOCHA=node_modules/.bin/mocha --recursive --compilers coffee:coffee-script-redux/register -u tdd --timeout 6000
all: clean setup test check-checkout-clean
build: $(LIB)
@./node_modules/.bin/npub prep lib
prepublish:
./node_modules/.bin/npub prep
lib/%.js: src/%.coffee
dirname "$@" | xargs mkdir -p
$(COFFEE) <"$<" >"$@"
clean:
rm -rf lib
rm -rf node_modules
test: build
$(MOCHA) -R spec test/*.coffee
release: all
git push --tags origin HEAD:master
npm publish
setup:
npm install
# This will fail if there are unstaged changes in the checkout
check-checkout-clean:
git diff --exit-code