]> git.donarmstrong.com Git - samtools.git/blobdiff - examples/Makefile
* Merge from branches/dev/
[samtools.git] / examples / Makefile
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..b6908fa
--- /dev/null
@@ -0,0 +1,21 @@
+all:../samtools ex1.glf ex1.pileup.gz ex1.bam.bai ex1.glfview.gz
+               @echo; echo \# You can now launch the viewer with: \'samtools tview ex1.bam ex1.fa\'; echo;
+
+ex1.fa.fai:ex1.fa
+               ../samtools faidx ex1.fa
+ex1.bam:ex1.sam.gz ex1.fa.fai
+               ../samtools import ex1.fa.fai ex1.sam.gz ex1.bam
+ex1.bam.bai:ex1.bam
+               ../samtools index ex1.bam
+ex1.pileup.gz:ex1.bam ex1.fa
+               ../samtools pileup -cf ex1.fa ex1.bam | gzip > ex1.pileup.gz
+ex1.glf:ex1.bam ex1.fa
+               ../samtools pileup -gf ex1.fa ex1.bam > ex1.glf
+ex1.glfview.gz:ex1.glf
+               ../samtools glfview ex1.glf | gzip > ex1.glfview.gz
+
+../samtools:
+               (cd ..; make samtools)
+
+clean:
+               rm -f *.bam *.bai *.glf* *.fai *.pileup* *~
\ No newline at end of file