summaryrefslogtreecommitdiff
path: root/build-system/Makefile
blob: 6edd8785a8494ad9aeca1fe16f1696fe94de1c6b (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
# This Makefile is in the public domain

version := $(shell poetry version | awk '{ print $$2 }')

.PHONY: all
all: wheel

.PHONY: poetry-install
poetry-install:
	poetry install

.PHONY: wheel
wheel: poetry-install
	poetry run python3 manage.py compilemessages
	poetry build -f wheel

.PHONY: install
install: wheel
	pip3 install --user "dist/talerbank-$(version)-py3-none-any.whl"

.PHONY: i18n-strings
i18n-strings: poetry-install
	poetry run python3 manage.py makemessages -l it
	poetry run python3 manage.py makemessages -l de
	# Also update template for new languages
	poetry run python3 manage.py makemessages -l en
	mv talerbank/app/locale/en/LC_MESSAGES/django.po talerbank/app/locale/django.pot
	rm -r talerbank/app/locale/en/

# See bug #5850 for some test cases that are currently disabled.
.PHONY: check
check: poetry-install
	poetry run ./run-tests.sh

.PHONY: clean
clean:
	rm -rf dist

.PHONY: dist
dist:
	./build-system/taler-build-scripts/archive-with-submodules/git_archive_all.py taler-bank-$(version).tar.gz

.PHONY: pretty
pretty:
	black talerbank/