2014-08-25 02:08:01 +04:00
|
|
|
.PHONY: env help clean html text doctest
|
2010-02-09 07:58:28 +03:00
|
|
|
|
2010-02-14 19:11:01 +03:00
|
|
|
docs: html text
|
2010-02-09 07:58:28 +03:00
|
|
|
|
2010-02-14 08:01:00 +03:00
|
|
|
check: doctest
|
|
|
|
|
2014-08-25 02:08:01 +04:00
|
|
|
# The environment is currently required to build the documentation.
|
|
|
|
# It is not clean by 'make clean'
|
|
|
|
|
2010-02-09 07:58:28 +03:00
|
|
|
help:
|
2014-08-25 02:08:01 +04:00
|
|
|
$(MAKE) SPHINXBUILD=$$(pwd)/env/bin/sphinx-build -C src $@
|
2010-02-09 07:58:28 +03:00
|
|
|
|
|
|
|
html:
|
2014-08-25 02:08:01 +04:00
|
|
|
$(MAKE) SPHINXBUILD=$$(pwd)/env/bin/sphinx-build -C src $@
|
2010-02-14 19:11:01 +03:00
|
|
|
cp -r src/_build/html .
|
2010-02-09 07:58:28 +03:00
|
|
|
|
2010-02-14 17:45:15 +03:00
|
|
|
text:
|
2014-08-25 02:08:01 +04:00
|
|
|
$(MAKE) SPHINXBUILD=$$(pwd)/env/bin/sphinx-build -C src $@
|
2010-02-14 19:11:01 +03:00
|
|
|
cd src && tools/stitch_text.py index.rst _build/text > ../psycopg2.txt
|
2010-02-09 07:58:28 +03:00
|
|
|
|
|
|
|
doctest:
|
2014-08-25 02:08:01 +04:00
|
|
|
$(MAKE) SPHINXBUILD=$$(pwd)/env/bin/sphinx-build -C src $@
|
2010-02-14 19:11:01 +03:00
|
|
|
|
|
|
|
clean:
|
2014-08-25 02:08:01 +04:00
|
|
|
$(MAKE) SPHINXBUILD=$$(pwd)/env/bin/sphinx-build -C src $@
|
2010-02-14 19:11:01 +03:00
|
|
|
rm -rf html psycopg2.txt
|
2014-08-25 02:08:01 +04:00
|
|
|
|
|
|
|
env: requirements.txt
|
|
|
|
virtualenv env
|
|
|
|
./env/bin/pip install -r requirements.txt
|