-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
24 lines (18 loc) · 977 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
venv: roko_venv/bin/activate
roko_venv/bin/activate:
python3 -m venv roko_venv
. roko_venv/bin/activate; pip install pip --upgrade
libhts.a: Dependencies/htslib-1.9
cd Dependencies/htslib-1.9; chmod +x ./configure ./version.sh
. roko_venv/bin/activate; cd Dependencies/htslib-1.9; ./configure CFLAGS=-fpic && make
gpu: venv requirements.txt libhts.a generate.cpp models.cpp gen.cpp setup.py
. roko_venv/bin/activate; pip install -r requirements.txt;
. roko_venv/bin/activate; python3 setup.py build_ext; python3 setup.py install
rm -rf build
cpu: venv requirements_cpu.txt libhts.a generate.cpp models.cpp gen.cpp setup.py
. roko_venv/bin/activate; pip install -r requirements_cpu.txt; pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
. roko_venv/bin/activate; python3 setup.py build_ext; python3 setup.py install
rm -rf build
clean:
cd Dependencies/htslib-1.9 && make clean || exit 0
rm -rf roko_venv