@@ -9,10 +9,13 @@ package = aa_intel_tool
9
9
.DEFAULT_GOAL := help
10
10
11
11
# Help
12
+ .PHONY : help
12
13
help :
14
+ @echo " "
13
15
@echo " $( appname_verbose) Makefile"
14
16
@echo " "
15
- @echo " Usage: make [command]"
17
+ @echo " Usage:"
18
+ @echo " make [command]"
16
19
@echo " "
17
20
@echo " Commands:"
18
21
@echo " build_test Build the package"
@@ -21,11 +24,13 @@ help:
21
24
@echo " pre-commit-checks Run pre-commit checks"
22
25
@echo " tox_tests Run tests with tox"
23
26
@echo " translationfiles Create or update translation files"
27
+ @echo " "
24
28
25
29
# Translation files
30
+ .PHONY : translationfiles
26
31
translationfiles :
27
- # cd $(package); \
28
- django-admin makemessages \
32
+ @echo " Creating or updating translation files "
33
+ @ django-admin makemessages \
29
34
-l cs \
30
35
-l de \
31
36
-l es \
@@ -43,17 +48,21 @@ translationfiles:
43
48
--ignore ' build/*'
44
49
45
50
# Graph models
51
+ .PHONY : graph_models
46
52
graph_models :
47
- python ../myauth/manage.py \
53
+ @echo " Creating a graph of the models"
54
+ @python ../myauth/manage.py \
48
55
graph_models \
49
56
$(package ) \
50
57
--arrow-shape normal \
51
58
-o $(appname ) -models.png
52
59
53
60
# Coverage
61
+ .PHONY : coverage
54
62
coverage :
55
- rm -rfv htmlcov; \
56
- coverage run ../myauth/manage.py \
63
+ @echo " Running tests and creating a coverage report"
64
+ @rm -rf htmlcov
65
+ @coverage run ../myauth/manage.py \
57
66
test \
58
67
$(package ) \
59
68
--keepdb \
@@ -62,16 +71,22 @@ coverage:
62
71
coverage report -m
63
72
64
73
# Build test
74
+ .PHONY : build_test
65
75
build_test :
66
- rm -rfv dist; \
67
- python3 -m build
76
+ @echo " Building the package"
77
+ @rm -rf dist
78
+ @python3 -m build
68
79
69
80
# Tox tests
81
+ .PHONY : tox_tests
70
82
tox_tests :
71
- export USE_MYSQL=False; \
83
+ @echo " Running tests with tox"
84
+ @export USE_MYSQL=False; \
72
85
tox -v -e allianceauth-latest; \
73
86
rm -rf .tox/
74
87
75
88
# Pre-commit checks
89
+ .PHONY : pre-commit-checks
76
90
pre-commit-checks :
77
- pre-commit run --all-files
91
+ @echo " Running pre-commit checks"
92
+ @pre-commit run --all-files
0 commit comments