Skip to content

Commit b309be1

Browse files
authored
🔀 Merge pull request #94 from davep/tweak-makefile
Tidy the Makefile
2 parents 96a59b4 + 311a8fa commit b309be1

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

Makefile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ docs: # Generate the system documentation
7474
$(mkdocs) build
7575

7676
.PHONY: rtfm
77-
rtfm: # Locally read the library documentation
77+
rtfm: # Locally read the library documentation
7878
$(mkdocs) serve
7979

8080
.PHONY: publishdocs
81-
publishdocs: # Set up the docs for publishing
81+
publishdocs: clean-docs # Set up the docs for publishing
8282
$(mkdocs) gh-deploy
8383

8484
##############################################################################
@@ -102,23 +102,30 @@ dist: package # Upload to pypi
102102
##############################################################################
103103
# Utility.
104104
.PHONY: repl
105-
repl: # Start a Python REPL in the venv.
105+
repl: # Start a Python REPL in the venv
106106
$(python)
107107

108108
.PHONY: delint
109-
delint: # Fix linting issues.
109+
delint: # Fix linting issues
110110
$(lint) --fix $(src) $(tests)
111111

112112
.PHONY: pep8ify
113-
pep8ify: # Reformat the code to be as PEP8 as possible.
113+
pep8ify: # Reformat the code to be as PEP8 as possible
114114
$(fmt) $(src) $(tests)
115115

116116
.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
118126

119127
.PHONY: clean
120-
clean: # Clean the build directories
121-
rm -rf dist site
128+
clean: clean-packaging clean-docs # Clean the build directories
122129

123130
.PHONY: realclean
124131
realclean: clean # Clean the venv and build directories

0 commit comments

Comments
 (0)