-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile for installing python3 instead of python2
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This make file would install all require software packages except ABySS. | ||
|
||
SHELL:=/bin/bash -eu -o pipefail | ||
|
||
.DELETE_ON_ERROR: | ||
|
||
WORKDIR:=$(shell pwd) | ||
|
||
IGRAPH_VERSION:=0.7.1 | ||
PYTHON_VERSION:=3.6.4 | ||
|
||
all: transabyss transabyss-merge | ||
touch $@.COMPLETE | ||
|
||
clean: clean_blat clean_python clean_igraph | ||
rm -f all.COMPLETE && \ | ||
rm -rf ./bin ./lib ./include ./share | ||
|
||
transabyss: bin blat.COMPLETE python.COMPLETE python-igraph.COMPLETE | ||
|
||
transabyss-merge: transabyss | ||
|
||
bin: | ||
mkdir -p ./bin | ||
|
||
blat.COMPLETE: bin | ||
wget --quiet --no-check-certificate -N -P ./bin http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/blat/blat && \ | ||
chmod +x ./bin/blat && \ | ||
touch $@ | ||
|
||
clean_blat: | ||
rm -f blat.COMPLETE ./bin/blat | ||
|
||
python.COMPLETE: bin | ||
wget --quiet --no-check-certificate -N https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tgz && \ | ||
tar -zxf Python-$(PYTHON_VERSION).tgz && \ | ||
cd Python-$(PYTHON_VERSION) && \ | ||
./configure --quiet --prefix=$(WORKDIR) && \ | ||
make --quiet && \ | ||
make --quiet install && \ | ||
cd $(WORKDIR) && \ | ||
ln -s python3 ./bin/python && \ | ||
touch $@ | ||
|
||
clean_python: | ||
rm -f python.COMPLETE python-igraph.COMPLETE Python-$(PYTHON_VERSION).tgz && \ | ||
rm -rf Python-$(PYTHON_VERSION) | ||
|
||
igraph.COMPLETE: bin | ||
wget --quiet --no-check-certificate -N http://igraph.org/nightly/get/c/igraph-$(IGRAPH_VERSION).tar.gz && \ | ||
tar -zxf igraph-$(IGRAPH_VERSION).tar.gz && \ | ||
cd igraph-$(IGRAPH_VERSION) && \ | ||
./configure --quiet --prefix=$(WORKDIR) && \ | ||
make --quiet && \ | ||
make --quiet install && \ | ||
cd $(WORKDIR) && \ | ||
touch $@ | ||
|
||
clean_igraph: | ||
rm -f igraph.COMPLETE igraph-$(IGRAPH_VERSION).tar.gz && \ | ||
rm -rf igraph-$(IGRAPH_VERSION) | ||
|
||
python-igraph.COMPLETE: bin python.COMPLETE igraph.COMPLETE | ||
export PKG_CONFIG_PATH=$(WORKDIR)/lib/pkgconfig && \ | ||
./bin/pip3 --quiet install python-igraph && \ | ||
touch $@ |