Skip to content

Commit 9288693

Browse files
authored
Add make clean target (#2696)
This deletes all files generated during local development workflows. Cf. git ls-files --others --ignored --exclude-standard --directory Helpful to run before switching branches.
1 parent 804cc5b commit 9288693

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,31 @@ themes:
2020
test:
2121
${JULIA} --project -e 'using Pkg; Pkg.test()'
2222

23+
clean:
24+
rm -f Manifest.toml
25+
rm -f docs/Manifest.toml
26+
rm -f docs/src/release-notes.md
27+
rm -rf docs/dev
28+
rm -rf docs/build
29+
rm -rf test/docstring_links
30+
rm -rf test/docstring_links/build
31+
rm -rf test/docsxref/build
32+
rm -rf test/doctests/builds
33+
rm -rf test/errors/build
34+
rm -rf test/examples/builds
35+
rm -rf test/missingdocs/build
36+
rm -rf test/nongit/build
37+
rm -rf test/plugins/build
38+
rm -rf test/quietly-logs
39+
rm -rf test/workdir/builds
40+
41+
2342
help:
2443
@echo "The following make commands are available:"
2544
@echo " - make changelog: update all links in CHANGELOG.md's footer"
2645
@echo " - make docs: build the documentation"
2746
@echo " - make test: run the tests"
2847
@echo " - make themes: compile Documenter's native CSS themes"
48+
@echo " - make clean: remove generated files"
2949

3050
.PHONY: default docs-instantiate themes help changelog docs test

0 commit comments

Comments
 (0)