File: Makefile

package info (click to toggle)
python-pysam 0.23.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,464 kB
  • sloc: ansic: 158,947; python: 8,806; makefile: 264; sh: 79
file content (25 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ALL_VCF=$(wildcard *.vcf)
VCF=$(filter-out example_empty.vcf,$(ALL_VCF))

VCFGZ=$(VCF:%.vcf=%.vcf.gz)
BCF=$(VCF:%.vcf=%.bcf)

all: all.stamp

all.stamp: $(VCFGZ) $(BCF)
	touch $@

%.vcf.gz: %.vcf
	bgzip < $< > $@
	tabix -f -p vcf $@    # create tbi index
	bcftools index -f $@  # create csi index

%.bcf: %.vcf.gz
	bcftools view -O b $< -o $@
	bcftools index -f $@

example_empty.bcf: example_empty.vcf.gz
	touch $@

clean:
	-rm -rf all.lock all.stamp *.gz *.tbi *.csi *.bcf