File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11_build /
2+ api /
Original file line number Diff line number Diff line change @@ -8,22 +8,27 @@ SPHINXOPTS ?=
88SPHINXBUILD ?= sphinx-build
99SOURCEDIR = .
1010BUILDDIR = _build
11+ APIBUILDDIR = api
12+ MODULEDIR = ../typed_python
1113
1214# Put it first so that "make" without argument is like "make help".
1315help :
1416 @$(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
1517
16- .PHONY : help Makefile
18+ .PHONY : help clean apidocs Makefile
19+
20+ apidocs :
21+ @sphinx-apidoc -fo " $( APIBUILDDIR) " " $( MODULEDIR) "
22+
23+ clean :
24+ -rm -rf " $( BUILDDIR) " /*
25+ -rm -rf " $( APIBUILDDIR) " /*
1726
1827show :
1928 @echo " Showing generated html"
2029 @python -c " import webbrowser; webbrowser.open_new_tab('file://$( PWD) /$( BUILDDIR) /html/index.html')"
2130
2231# Catch-all target: route all unknown targets to Sphinx using the new
2332# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
24-
25- # make sure to rebuild API reference with
26- # sphinx-apidoc -o . ../typed_python -f
27- # if required
2833% : Makefile
2934 @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
You can’t perform that action at this time.
0 commit comments