-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
50 lines (36 loc) · 1.16 KB
/
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
CSS_DIR = public/stylesheets
FONT_FILES = public/fonts/*
MAIN_CSS = ${CSS_DIR}/deckster.css
# Keep globbing consistent across platforms
export LC_COLLATE = C
all: build
build: ${MAIN_CSS} deckster.js
${MAIN_CSS}: ${CSS_DIR}/deckster.scss ${CSS_DIR}/partials/*.scss
node-sass $< $@
# If you use $^ in the coffee command below, instead of deckster/*.coffee, Make
# will expand the glob expression before passing it to the shell, so the sort
# order will be unaffected by the LC_COLLATE env variable. Beware on Linux!
deckster.js: deckster/*.coffee
coffee -j deckster.js -c deckster/*.coffee
serve: deckster.js ${MAIN_CSS} index.html jquery-2.0.3.min.js
node server.js
rest:
node express_example/app.js
database:
./mongodb/bin/mongod
zip: deckster.js ${MAIN_CSS} index.html jquery-2.0.3.min.js
zip deckster-0.0.1.zip deckster.js ${MAIN_CSS} ${FONT_FILES} index.html jquery-2.0.3.min.js
lint: coffeelint jshint csslint tidy
coffeelint: deckster.coffee
-coffeelint --nocolor -r .
jshint: deckster.js package.json
-jshint .
-jshint *.json
csslint: ${MAIN_CSS}
-csslint .
tidy: index.html
-tidy index.html 2>&1
clean:
-rm *.zip
-rm ${MAIN_CSS}
-rm deckster.js