-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (45 loc) · 984 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
GIT2CL ?= admin-tools/git2cl
PYTHON ?= python3
PIP ?= pip3
RM ?= rm
SHELL ?= bash
SASS ?= sass
.PHONY: \
all \
build \
check \
clean \
develop \
dist \
install \
rmChangeLog \
test
#: Default target - same as "develop"
all: develop
#: Set up to run from the source tree
develop:
$(PIP) install -e .
mma.css: mma.scss
$(SASS) $< $@
test check: pytest
#: Remove derived files
clean:
@find . -name *.pyc -type f -delete
#: Build distribution
dist: admin-tools/make-dist.sh
$(SHELL) admin-tools/make-dist.sh
distclean: clean
@rm mma.css || true
#: Install this beauty
install:
$(PYTHON) ./setup.py install
#: Run py.test tests. Use environment variable "o" for pytest options
pytest:
py.test tests $o
#: Remove ChangeLog
rmChangeLog:
$(RM) ChangeLog || true
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) >$@
patch ChangeLog < ChangeLog-spell-corrected.diff