-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 1.02 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
all: notebooks cloneHD
# The following defaults are based on my preferences, but possible for others
# to override thanks to the `?=' operator.
WORKON_HOME ?= $(HOME)/.virtualenvs
VIRTUAL_ENV ?= $(WORKON_HOME)/clonal-heterogeneity
ACTIVATE = . "$(VIRTUAL_ENV)/bin/activate"
default:
@echo "Makefile for the repository"
@echo
@echo 'Commands:'
@echo
@echo ' make notebooks install notebook requirements in a virtual environment'
@echo ' make cloneHD compile the cloneHD submodule'
@echo ' make clean cleanup all temporary files'
notebooks:
test -d "$(VIRTUAL_ENV)" || mkdir -p "$(VIRTUAL_ENV)"
test -x "$(VIRTUAL_ENV)/bin/python" || virtualenv "$(VIRTUAL_ENV)"
$(ACTIVATE) && pip install -r requirements.txt
cloneHD:
test -d "cloneHD/build" || mkdir -p "cloneHD/build"
cd cloneHD/src && $(MAKE)
test -d "build" || mkdir -p "build"
cp cloneHD/build/cloneHD build/
cp cloneHD/build/filterHD build/
clean:
cd cloneHD/src && $(MAKE) clean
${RM} build/cloneHD build/filterHD
.PHONY: all default notebooks cloneHD clean