File: Makefile

package info (click to toggle)
python-django-formtools 1.0+20160714.git54f1ccca01-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 992 kB
  • ctags: 481
  • sloc: python: 2,070; makefile: 196
file content (28 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
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
export DJANGO_SETTINGS_MODULE = tests.settings
export PYTHONPATH := $(shell pwd)

clean:
	git clean -Xfd

maketranslations:
	cd formtools; django-admin.py makemessages -a -v2

pulltranslations:
	tx pull -f -a --minimum-perc=1

compiletranslations:
	cd formtools; django-admin.py compilemessages

translations: pulltranslations maketranslations compiletranslations
	@echo "Pulling, making and compiling translations"

docs:
	$(MAKE) -C docs clean html

test:
	@flake8
	@isort --recursive --check-only --diff formtools tests
	@ coverage run `which django-admin.py` test tests
	@coverage report

.PHONY: clean docs test maketranslations pulltranslations compiletranslations