forked from percyfal/biomake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.samtools
More file actions
43 lines (33 loc) · 817 Bytes
/
Copy pathMakefile.samtools
File metadata and controls
43 lines (33 loc) · 817 Bytes
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
41
42
43
#-*- makefile -*-
#
# samtools makefile rules
#
MAKEDIR = $(dir $(lastword $(MAKEFILE_LIST)))
ifeq ($(findstring Makefile.ngsvars,$(MAKEFILE_LIST)),)
include $(MAKEDIR)Makefile.ngsvars
endif
# samtools
ifndef SAMTOOLS
SAMTOOLS=samtools
endif
ifndef SAMTOOLS_THREADS
SAMTOOLS_THREADS=$(THREADS)
endif
ifndef SAMTOOLS_OPTIONS
SAMTOOLS_OPTIONS=
endif
ifndef SAMTOOLS_REF
SAMTOOLS_REF=$(REF)
endif
%.bam: %.sam
$(SAMTOOLS) view -Sbh - > $@.tmp && mv $@.tmp $@
##############################
# settings
##############################
.PHONY: samtools-settings samtools-header
print-%:
@echo '$*=$($*)'
samtools-header:
@echo -e "\nMakefile.samtools options"
@echo "========================="
samtools-settings: samtools-header print-SAMTOOLS print-SAMTOOLS_THREADS print-SAMTOOLS_OPTIONS print-SAMTOOLS_REF