@@ -74,11 +74,11 @@ docs: # Generate the system documentation
74
74
$(mkdocs ) build
75
75
76
76
.PHONY : rtfm
77
- rtfm : # Locally read the library documentation
77
+ rtfm : # Locally read the library documentation
78
78
$(mkdocs ) serve
79
79
80
80
.PHONY : publishdocs
81
- publishdocs : # Set up the docs for publishing
81
+ publishdocs : clean-docs # Set up the docs for publishing
82
82
$(mkdocs ) gh-deploy
83
83
84
84
# #############################################################################
@@ -102,23 +102,30 @@ dist: package # Upload to pypi
102
102
# #############################################################################
103
103
# Utility.
104
104
.PHONY : repl
105
- repl : # Start a Python REPL in the venv.
105
+ repl : # Start a Python REPL in the venv
106
106
$(python )
107
107
108
108
.PHONY : delint
109
- delint : # Fix linting issues.
109
+ delint : # Fix linting issues
110
110
$(lint ) --fix $(src ) $(tests )
111
111
112
112
.PHONY : pep8ify
113
- pep8ify : # Reformat the code to be as PEP8 as possible.
113
+ pep8ify : # Reformat the code to be as PEP8 as possible
114
114
$(fmt ) $(src ) $(tests )
115
115
116
116
.PHONY : tidy
117
- tidy : delint pep8ify # Tidy up the code, fixing lint and format issues.
117
+ tidy : delint pep8ify # Tidy up the code, fixing lint and format issues
118
+
119
+ .PHONY : clean-packaging
120
+ clean-packaging : # Clean the package building files
121
+ rm -rf dist
122
+
123
+ .PHONY : clean-docs
124
+ clean-docs : # Clean up the documentation building files
125
+ rm -rf site .screenshot_cache
118
126
119
127
.PHONY : clean
120
- clean : # Clean the build directories
121
- rm -rf dist site
128
+ clean : clean-packaging clean-docs # Clean the build directories
122
129
123
130
.PHONY : realclean
124
131
realclean : clean # Clean the venv and build directories
0 commit comments