-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 978 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
PATH:=./node_modules/.bin/:$(PATH)
# $(for package in $(cat .browserify); do echo -n " -r $package"; done)
all: install build test start
clean:
rm -rf lib/*
init:
if [ -e npm-shrinkwrap.json ]; then rm npm-shrinkwrap.json; fi
npm install
install: clean
hash coffee || { echo "Coffee not installed globally. I need it to compile."; exit 1; }
coffee -c -o lib src
build: clean init # browserify
./node_modules/.bin/coffee -c -o lib src
watch: end-watch
./node_modules/.bin/coffee -cmw -o lib src & echo $$! > .watch_pid
end-watch:
if [ -e .watch_pid ]; then kill `cat .watch_pid`; rm .watch_pid; else echo no .watch_pid file; fi
if [ -e .watch_frontend_pid ]; then kill `cat .watch_frontend_pid`; rm .watch_frontend_pid; else echo no .watch_pid file; fi
start:
npm start
test:
npm test
docs:
echo "Error: no docs generator installed"
# ./node_modules/.bin/groc "src/*.coffee?(.md)" "src/**/*.coffee?(.md)" readme.md
clean-docs:
rm -rf docs/*