forked from WillForan/ICA-AROMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 1.01 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
BASEDIR := /usr/local
BINDIR := $(BASEDIR)/bin
DATADIR := $(BASEDIR)/share/aroma
.PHONY: info build install standalone tests clean
info:
$(info type "make install" to install as a python package or "make standalone" to install icaaroma directly to $(BINDIR))
build:
python setup.py build
install:
python setup.py install
# Install directly as standalone python script rather than as a package
standalone:
install -T -m 0755 icaaroma/aroma.py $(BINDIR)/aroma
mkdir -p $(DATADIR)
install -m 0644 icaaroma/data/mask_csf.nii.gz $(DATADIR)
install -m 0644 icaaroma/data/mask_edge.nii.gz $(DATADIR)
install -m 0644 icaaroma/data/mask_out.nii.gz $(DATADIR)
tests:
(cd tests; make tests)
clean:
rm -rf build/ dist/ *.pyc __pycache__ */*.pyc */__pycache__ *.egg-info
(cd ipynb; make clean)
(cd tests; make clean)
docker:
docker build -t rtrhd/aroma:latest .
@echo ""
@echo "Built a docker image. Try running:"
@echo " " "\"docker run --rm rtrhd/aroma\""
@echo "or " "\"docker run --rm rtrhd/aroma make tests\""