-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (27 loc) · 1.06 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include release_settings
TAR = .tar.bz2
TAG = $(version)
HTSTAG = $(if $(htslib_version),$(htslib_version),$(TAG))
SAMTAG = $(if $(samtools_version),$(samtools_version),$(TAG))
BCFTAG = $(if $(bcftools_version),$(bcftools_version),$(TAG))
PREFIX_DIR = ..
# Hack to get rid of the quote marks in the $(packages) variable.
PACKAGES_ := $(shell echo $(packages))
tar: $(PACKAGES_)
htslib: htslib-$(HTSTAG)$(TAR)
samtools: samtools-$(SAMTAG)$(TAR)
bcftools: bcftools-$(BCFTAG)$(TAR)
samtools-$(SAMTAG)$(TAR): samtools-$(SAMTAG)-solo$(TAR) htslib-$(HTSTAG)$(TAR)
./addhtslib $@ $^ $(HTSTAG)
bcftools-$(BCFTAG)$(TAR): bcftools-$(BCFTAG)-solo$(TAR) htslib-$(HTSTAG)$(TAR)
./addhtslib $@ $^ $(HTSTAG)
htslib-$(HTSTAG)$(TAR):
./mktarball $(PREFIX_DIR)/htslib $(HTSTAG)
samtools-$(SAMTAG)-solo$(TAR):
./mktarball $(PREFIX_DIR)/samtools $(SAMTAG) -solo
bcftools-$(BCFTAG)-solo$(TAR):
./mktarball $(PREFIX_DIR)/bcftools $(BCFTAG) -solo
.PRECIOUS: samtools-$(SAMTAG)-solo$(TAR) bcftools-$(BCFTAG)-solo$(TAR)
clean:
-rm -f *.tar.bz2
.PHONY: clean tar samtools bcftools htslib