diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-26 11:50:45 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-26 11:50:45 +0800 |
commit | 96e7daeaf178c8460547c8358dad001eea6d61e4 (patch) | |
tree | 23610377943b2d166de8bcdf36fc8cb205ef999b | |
parent | 0c5a75de036c42e9e72da7636501df65606eb5f1 (diff) | |
download | smartypants-96e7daeaf178c8460547c8358dad001eea6d61e4.tar.gz |
only generate documentation when necessary
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.rst | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -15,6 +15,8 @@ VENV_PY3_CMD=virtualenv-python3.2 BUILD_CMD=./setup.py sdist --formats gztar,zip bdist_wininst --plat-name win32 +DOC_FILES = docs/conf.py $(wildcard docs/*.rst) + # ============================================================================ build: @@ -28,7 +30,9 @@ upload_doc: doc # ============================================================================ -doc: smartypants_command.py +doc: docs/_build/html + +docs/_build/html: $(DOC_FILES) smartypants.py smartypants_command.py make -C docs html smartypants_command.py: smartypants @@ -44,6 +44,6 @@ Both produce:: More information ---------------- -You can read smartypants' documentation_ or visit smartypants_ on Bitbucket. +You can read smartypants' documentation_ or visit smartypants_ on Bitbucket. .. _documentation: http://pythonhosted.org/smartypants/ |