-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (37 loc) · 1.58 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
41
42
43
44
45
46
47
48
CPPF=-g -O2 -W -Wall -Wno-unused-parameter -Wpointer-arith -Wshadow -Wundef -std=c++11
FSD=src/fstats/
all: bin/fasta_stats dependencies/SALSA/run_pipeline.py \
dependencies/SALSA/break_contigs_start \
bin/bbmap/reformat.sh \
bin/pilon-1.23.jar dependencies/pairix/bin/pairix \
bin/fqjt bin/minlen_pair \
dependencies/miniprot
bin/fqjt: src/fq-jt.c
mkdir -p bin
gcc -gdwarf-2 -g src/fq-jt.c -lz -o bin/fqjt
bin/bbmap/reformat.sh: dependencies/bbtools/BBMap_38.90.tar.gz
tar -C bin/ -zxvf dependencies/bbtools/BBMap_38.90.tar.gz
bin/minlen_pair: src/minlen_pair.c src/kseq.h
mkdir -p bin
gcc src/minlen_pair.c -lz -o bin/minlen_pair
bin/fasta_stats: ${FSD}fasta_stats.cc ${FSD}itoa.cc ${FSD}open_compressed.h
mkdir -p bin
g++ ${CPPF} -o bin/fasta_stats ${FSD}*.cc
bin/pilon-1.23.jar:
mkdir -p bin
wget --directory-prefix bin 'https://github.com/broadinstitute/pilon/releases/download/v1.23/pilon-1.23.jar'
dependencies/SALSA/run_pipeline.py:
mkdir -p dependencies
cd dependencies; git clone https://github.com/marbl/SALSA.git
for file in dependencies/SALSA/*.py; do sed -i '1s;^;#!/usr/bin/python2\n;' $${file}; done
dependencies/SALSA/break_contigs_start: dependencies/SALSA/run_pipeline.py
cd dependencies/SALSA; make
dependencies/pairix/setup.py:
mkdir -p dependencies
cd dependencies; git clone https://github.com/4dn-dcic/pairix
dependencies/pairix/bin/pairix: dependencies/pairix/setup.py
cd dependencies/pairix; make
dependencies/miniprot:
mkdir -p dependencies
cd dependencies; git clone https://github.com/lh3/miniprot.git
cd dependencies/miniprot; make