diff --git a/.gitignore b/.gitignore index dfedda47f..0ca7c019e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ build/ .vscode/ node_modules/ __pycache__/ -*.pyc \ No newline at end of file +*.pyc +spec/**/generated diff --git a/spec/Makefile b/spec/Makefile index d4bb2cbb9..a82ae58bb 100644 --- a/spec/Makefile +++ b/spec/Makefile @@ -12,9 +12,13 @@ BUILDDIR = _build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile +.PHONY: help Makefile clean # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +clean: + -rm -rf $(BUILDDIR) + -rm -rf "$(SOURCEDIR)/API_specification/generated"