-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (30 loc) · 1.03 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
BOOTSTRAP_LESS = ./css-src/bootstrap/bootstrap.less
BOOTSTRAP_RESPONSIVE_LESS = ./css-src/bootstrap/responsive.less
all: build
build: less coffee package-js
final: less coffee package-js-final
coffee:
coffee -c -o ./js ./js-src
less:
recess --compile css-src/style.less > css/style.css
recess --compress css-src/style.less > css/style.min.css
# rebuild bootstrap, if you change defaults or something
bootstrap:
recess --compile ${BOOTSTRAP_LESS} > css/bootstrap.css
recess --compress ${BOOTSTRAP_LESS} > css/bootstrap.min.css
recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > css/bootstrap-responsive.css
recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > css/bootstrap-responsive.min.css
web:
python -m SimpleHTTPServer
## asset packager, lol
JS_FILES= js/libs/jquery-1.7.1.min.js \
js/libs/modernizr-2.5.3.min.js \
js/libs/bootstrap.js \
js/plugins.js \
js/application.js \
## DEVELOPMENT
package-js: ${JS_FILES}
cat ${JS_FILES} > js/app-dev.js
## FINAL
package-js-final:
cat ${JS_FILES} | uglifyjs > js/app-final.js