-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (26 loc) · 1.2 KB
/
Makefile
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
define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
match = re.match(r'^([a-zA-Z0-9_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"
help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
clean: ## remove development artifacts and working directory
@rm -fr dist '~build' .pytest_cache .coverage src/smart_admin.egg-info build
@find . -name __pycache__ -o -name .eggs | xargs rm -rf
@find . -name "*.py?" -o -name "*.min.min.js" -o -name ".DS_Store" -o -name "*.orig" -o -name "*.min.min.js" -o -name "*.min.min.css" -prune | xargs rm -rf
fullclean: ## remove all development artifacts including tox
@rm -rf .tox .cache
$(MAKE) clean
lint: ## code lint
pre-commit run --all-files
i18n: ## i18n support
cd src && django-admin makemessages --all --settings=aurora.config.settings -d djangojs --pythonpath=. --ignore=~*
cd src && django-admin makemessages --all --settings=aurora.config.settings --pythonpath=. --ignore=~*
cd src && django-admin compilemessages --settings=aurora.config.settings --pythonpath=. --ignore=~*
git commit -m "Update translations"