-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 996 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
.DEFAULT_GOAL = less
BOOTSTRAP_LESS = ./less/bootstrap.less
BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
HMT_LESS = ./less/hmt.less
JS = ./js/bootstrap.custom.js ./js/hmt.js
JS_MIN = ./js/hmt.min.js
run:
jekyll --server
less:
./node_modules/.bin/lessc ${BOOTSTRAP_LESS} > ./css/bootstrap.css
./node_modules/.bin/lessc --compress ${BOOTSTRAP_LESS} > ./css/bootstrap.min.css
./node_modules/.bin/lessc ${BOOTSTRAP_RESPONSIVE_LESS} > ./css/bootstrap-responsive.css
./node_modules/.bin/lessc --compress ${BOOTSTRAP_RESPONSIVE_LESS} > ./css/bootstrap-responsive.min.css
./node_modules/.bin/lessc ${HMT_LESS} > ./css/hmt.css
./node_modules/.bin/lessc --compress ${HMT_LESS} > ./css/hmt.min.css
js:
cat $(JS) | ./node_modules/.bin/uglifyjs -o $(JS_MIN)
categories:
rm -f -r ./categories/
cp -r ./_site/categories ./categories
clean-cat:
rm -f -r ./_site/categories/
clean:
rm -f ./css/bootstrap*.css ./css/hmt*.css ./js/*.min.js
.PHONY: clean less run js categories clean-cat