diff --git a/Makefile b/Makefile index fa3a83071c7..86d6706b4e6 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,13 @@ style: # create docs docs: cd $(DOCDIR) && $(MAKE) html; - rm -rf _images/ && rm -rf _sources/ && rm -rf _static/ && \ - cp -r docs/build/html/ ./; -# creates wheel file +# formats docs source build for github pages build: - @echo "Build is not supported for docs repo, run 'make docs' instead"; - exit 1; + make docs; + rm -rf _images/ && rm -rf _sources/ && rm -rf _static/ && \ + cp -r docs/build/html/ ./; + make clean; # clean package clean: