forked from pre-commit/pre-commit.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 975 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
# To build scss continuously I use `watch -n 0.1 make build/main.css`
all: install_pre_commit build/main.css
install_pre_commit: py_env
bash -c 'source py_env/bin/activate && \
pre-commit install'
build/main.css: node_env build scss/main.scss scss/_variables.scss
bash -c 'source py_env/bin/activate && \
pyscss -o build/main.css scss/main.scss'
py_env: requirements-dev.txt
virtualenv py_env
bash -c 'source py_env/bin/activate && \
pip install -r requirements-dev.txt'
node_env: py_env
bash -c 'source py_env/bin/activate && \
nodeenv node_env --prebuilt && \
source node_env/bin/activate && \
npm install -g bower && \
bower install'
install-local.py: py_env make_bootstrap.py
bash -c '. py_env/bin/activate && \
python make_bootstrap.py'
clean:
rm -rf py_env node_env build bower_components
build:
[ -d build ] || mkdir build
open: scss
(which google-chrome && google-chrome index.html) || \
(which firefox && firefox index.html) &