-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
22 lines (18 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = LambdaDecorators
SOURCEDIR = .
BUILDDIR = _build
README.rst:
python3 -c 'import lambda_decorators;print(lambda_decorators.__doc__)' > README.rst
sed -r -i'' -e 's;:(class|meth|func):`([^`]*)`;`\2 <http://lambda-decorators.rtfd.io#lambda_decorators.\2>`_;g' README.rst
sed -r -i'' -e 's;recipes.html;recipes.rst;g' README.rst
echo '`Full API Documentation <http://lambda-decorators.readthedocs.io/en/latest/>`_' >> README.rst
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile README.rst
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@pipenv run $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)