]> git.donarmstrong.com Git - lib.git/blob - templates/makefiles/snp_information.mk
add some makefile templates
[lib.git] / templates / makefiles / snp_information.mk
1 SNP_INFO ?=$(shell dir=./; while [ "$$( (cd $${dir} >/dev/null; pwd) )" != "/" ]; do if [ -e "$${dir}bin/snp_info" ]; then echo $${dir}bin/snp_info; break; fi; dir="$${dir}../"; done;)
2
3 snp_information.txt: snp_list.txt
4         if [ -e $@.target.md5sum ] && [ -e $@ ] && md5sum --status --check $@.target.md5sum; then \
5                 touch $@; \
6         else \
7                 $(SNP_INFO) $(SNP_INFO_OPTIONS) $< > $@; \
8                 md5sum $^ > $@.target.md5sum; \
9         fi;