-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
40 lines (28 loc) · 883 Bytes
/
Makefile
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
37
38
39
40
build: js remove-coffee
clean:
@git clean -xxdf
@git reset --hard
test: coffee-dep
@find test -name '*_test.coffee' | xargs -n 1 -t coffee
dev: coffee-dep js
@coffee --watch --compile --bare -output src src/
publish: npm-dep clean git-tag build npm-publish
VERSION = $(shell coffee src/npm-version.coffee)
git-tag:
git commit --allow-empty -a -m "release $(VERSION)"
git tag v$(VERSION)
git push origin master
git push origin v$(VERSION)
npm-publish:
npm publish
install: npm-dep build
npm install
js: coffee-dep
@coffee --compile --bare --output src src/
remove-coffee:
@rm src/*.coffee
npm-dep:
@test `which npm` || echo 'You need npm to do npm install... makes sense?'
coffee-dep:
@test `which coffee` || echo 'You need to have CoffeeScript in your PATH.\nPlease install it using `brew install coffee-script` or `npm install coffee-script`.'
.PHONY: all