]> git.donarmstrong.com Git - imprinted_genes.git/blobdiff - Makefile
add rules to build combined imprinted genes file
[imprinted_genes.git] / Makefile
index cb3d0351a80415120c5430118aba313fb4c0c059..b87aa21f22911187f642ab3af9f2eba75ce82c78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+R=R
+ROPTS=-q --no-save --no-restore-data
+
 geneimprint_human.html:
        wget -O $@ "http://www.geneimprint.com/site/genes-by-species.Homo+sapiens"
 
@@ -12,3 +15,6 @@ geneimprint_human.txt: geneimprint_human.html parse_geneimprint.pl
 
 parent_of_origin.txt: parent_of_origin.html parse_parent_of_origin.pl
        ./parse_parent_of_origin.pl $< > $@
+
+combined_imprinted_genes.txt: combine_imprinted_genes.R geneimprint_human.txt parent_of_origin.txt
+       $(R) $(ROPTS) -f $< --args $(wordlist 2,$(words $^),$^) $@