forked from badges/shields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 958 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
python := "$(shell { command -v python2.7 || command -v python; } 2>/dev/null)"
# Set the relative path to installed binaries under the project virtualenv.
# NOTE: Creating a virtualenv on Windows places binaries in the 'Scripts' directory.
bin_dir := $(shell $(python) -c 'import sys; bin = "Scripts" if sys.platform == "win32" else "bin"; print(bin)')
env_bin := env/$(bin_dir)
venv := "./vendor/virtualenv-1.9.1.py"
env/bin/aspen:
$(python) $(venv)\
--unzip-setuptools \
--prompt="[shields.io] " \
--distribute \
./env/
./$(env_bin)/pip install -r requirements.txt
./$(env_bin)/pip install -e ./
local.env:
cp default_local.env local.env
tests/env:
cp default_tests.env tests/env
clean:
rm -rf env
find . -name \*.pyc -delete
vendor/shielded/node_modules:
cd vendor/shielded && npm install
run: local.env env/bin/aspen vendor/shielded/node_modules
foreman run -e local.env ./env/bin/aspen --www_root=www --project_root=.