summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6622526c6d9e3b1b6f19299a5d13d127239714d7 (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=talerdonations/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-donations.tar.gz

.PHONY: pretty
pretty:
	yapf -r -i talerdonations/