blob: d40e2f4dfb313f3ad6603861449e1a5e6ef23e67 (
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
|
install_global=false
-include config.mk
.PHONY: all
all:
@echo "This is a python project, no compilation required"
.PHONY: install
ifeq ($(install_global), true)
install: install-global
else
install: install-local
endif
.PHONY: install-global
install-global:
pip3 install .
.PHONY: install-local
install-local:
pip3 install . --user
# run testcases
.PHONY: check
check:
@export TALER_CONFIG_FILE=talerblog/tests.conf; \
python3 setup.py test
.PHONY: clean
clean:
@echo nothing to do
.PHONY: dist
dist:
git archive --format=tar.gz HEAD -o taler-merchant-blog.tar.gz
.PHONY: pretty
pretty:
yapf -r -i talerblog/
|