summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1d9826807aeb772092e3ca3b1c71b137a713424f (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-donations.tar.gz

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