Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/1f122b33073d
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 00:43:32 2012
Кодировка:
allpy: 1f122b33073d

allpy

changeset 534:1f122b33073d

Added Makefile to automate building of codes.py
author Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru>
date Mon, 28 Feb 2011 19:17:07 +0300
parents 8ea4b44a7ed7
children 73637240a77c
files .hgignore Makefile
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/.hgignore	Mon Feb 28 19:15:31 2011 +0300
     1.2 +++ b/.hgignore	Mon Feb 28 19:17:07 2011 +0300
     1.3 @@ -12,6 +12,9 @@
     1.4  *.geany
     1.5  *.swp
     1.6  
     1.7 +# Temporary files from building
     1.8 +allpy/data/components.cif
     1.9 +
    1.10  # Temporary files from sphinx
    1.11  docs/build
    1.12  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/Makefile	Mon Feb 28 19:17:07 2011 +0300
     2.3 @@ -0,0 +1,14 @@
     2.4 +components_cif_gz_url = \
     2.5 +	ftp://ftp.ebi.ac.uk/pub/databases/rcsb/pdb/data/monomers/components.cif.gz
     2.6 +codes_py = allpy/data/codes.py
     2.7 +components_cif = allpy/data/components.cif
     2.8 +
     2.9 +$(codes_py): $(components_cif)
    2.10 +	python allpy/data/mkcodes.py -i $< -o $@
    2.11 +
    2.12 +$(components_cif):
    2.13 +	wget -O - $(components_cif_gz_url) | zcat > $@
    2.14 +
    2.15 +force:
    2.16 +	touch $(components_cif)
    2.17 +	$(MAKE)