blob: 1b2a50452bf2d29306d8d0156cd6a93cdfdee65c (
plain)
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
51
52
53
54
55
56
|
REBAR?=rebar
.PHONY: all
# target: all - Makes everything
all: build
.PHONY: build
# target: build - Builds the project
build:
$(REBAR) compile
.PHONY: check
# target: check - Checks if project builds and passes all the tests
check: build test
.PHONY: clean
# target: clean - Prints this help
clean:
$(REBAR) clean
rm -f test/*.pyc
.PHONY: distclean
# target: distclean - Removes all unversioned files
distclean: clean
git clean -fxd
.PHONY: help
# target: help - Prints this help
help:
@egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort
.PHONY: test
# target: test - Runs test suite
test:
nosetests
.PHONY: pip-install
# target: pip-install - Installs requires Python packages
pip-install:
pip install nose requests
pip install hypothesis
.PHONY: venv
# target: venv - Initializes virtual environment (requires virtualenv)
venv:
virtualenv --python=python2.7 venv
@echo "VirtualEnv has been created. Don't forget to run . venv/bin/active"
|