File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
OUTPUT_DIR =build
7
7
RENDER_COMMAND =$(VENVDIR ) /bin/python3 build.py -j $(JOBS ) -o $(OUTPUT_DIR )
8
8
9
+ .PHONY : render
9
10
render : venv
10
11
$(RENDER_COMMAND )
11
12
13
+ .PHONY : pages
12
14
pages : venv rss
13
15
$(RENDER_COMMAND ) --build-dirs
14
16
17
+ .PHONY : fail-warning
15
18
fail-warning : venv
16
19
$(RENDER_COMMAND ) --fail-on-warning
17
20
21
+ .PHONY : check-links
18
22
check-links : venv
19
23
$(RENDER_COMMAND ) --check-links
20
24
25
+ .PHONY : rss
21
26
rss : venv
22
27
$(VENVDIR ) /bin/python3 generate_rss.py
23
28
29
+ .PHONY : clean
24
30
clean : clean-venv
25
31
-rm -rf build topic
26
32
33
+ .PHONY : clean-venv
27
34
clean-venv :
28
35
rm -rf $(VENVDIR )
29
36
37
+ .PHONY : venv
30
38
venv :
31
39
@if [ -d $( VENVDIR) ] ; then \
32
40
echo " venv already exists." ; \
@@ -38,13 +46,16 @@ venv:
38
46
echo " The venv has been created in the $( VENVDIR) directory" ; \
39
47
fi
40
48
49
+ .PHONY : lint
41
50
lint : venv
42
51
$(VENVDIR ) /bin/python3 -m pre_commit --version > /dev/null || $(VENVDIR ) /bin/python3 -m pip install pre-commit
43
52
$(VENVDIR ) /bin/python3 -m pre_commit run --all-files
44
53
54
+ .PHONY : test
45
55
test : venv
46
56
$(VENVDIR ) /bin/python3 -bb -X dev -W error -m pytest
47
57
58
+ .PHONY : spellcheck
48
59
spellcheck : venv
49
60
$(VENVDIR ) /bin/python3 -m pre_commit --version > /dev/null || $(VENVDIR ) /bin/python3 -m pip install pre-commit
50
61
$(VENVDIR ) /bin/python3 -m pre_commit run --all-files --hook-stage manual codespell
You can’t perform that action at this time.
0 commit comments