-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1016 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
lintfiles := *.js *.json
default: lint-build
@:
lint-build: build
@jshint --verbose --extra-ext=.js,.json $(lintfiles)
build: index.js fan.css template.js stylesheet.js
@component build --dev
stylesheet.js: fan.css
@component convert $<
@mv fan.css.js stylesheet.js
template.js: template.html
@component convert $<
components: component.json
@component install --dev
clean:
rm -fr build components template.js
# open browser correctly in mac or linux
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
open := google-chrome
endif
ifeq ($(UNAME_S),Darwin)
open := open
endif
test: build
@${open} test/index.html
example: build
@${open} test/example.html
testci: build
@./node_modules/.bin/testem test/testem.json
docme: components build
mv build _build
mv test _test
mv components/visionmedia-mocha _vm
git checkout gh-pages
rm -rf build test components/visionmedia-mocha
mv _build build
mv _test test
mv _vm components/visionmedia-mocha
.PHONY: clean example docme test testci