allpy
changeset 540:747b4fef09e0
Makefile: added rules "tests" and "doc" for running tests and rebuilding documentation
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Mon, 28 Feb 2011 22:06:03 +0300 |
parents | 76cd434da99d |
children | 10d3e4f6e7cd |
files | Makefile |
diffstat | 1 files changed, 20 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/Makefile Mon Feb 28 21:36:15 2011 +0300 1.2 +++ b/Makefile Mon Feb 28 22:06:03 2011 +0300 1.3 @@ -3,12 +3,28 @@ 1.4 codes_py = allpy/data/codes.py 1.5 components_cif = allpy/data/components.cif 1.6 1.7 +all: doc codes test 1.8 + 1.9 +test: 1.10 + nosetests 1.11 + 1.12 +doc: 1.13 + sphinx-autopackage --suffix=rst --dest-dir=docs/source/allpy/ allpy 1.14 + $(MAKE) -C docs html 1.15 + 1.16 +force-doc: 1.17 + rm docs/source/allpy/* 1.18 + rm -rf docs/build 1.19 + $(MAKE) doc 1.20 + 1.21 +codes: $(codes_py) 1.22 + 1.23 +force-codes: 1.24 + rm $(codes_py) 1.25 + $(MAKE) codes 1.26 + 1.27 $(codes_py): $(components_cif) 1.28 python allpy/data/mkcodes.py -i $< -o $@ 1.29 1.30 $(components_cif): 1.31 wget -O - $(components_cif_gz_url) | zcat > $@ 1.32 - 1.33 -force: 1.34 - touch $(components_cif) 1.35 - $(MAKE)