-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 890 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
24
25
26
27
28
29
30
31
32
33
34
35
# help:
# @echo "Usage: make -i SRC=<path/file> -> to make a specific file"
# @echo " make -i -> to make all altered files"
.PHONY: build run code docs
build:
docker build . --tag mmp
build_singularity:
docker save mmp -o mmp.tar
singularity build mmp.sif docker-archive://mmp.tar
# Run interactive R session in docker container
R_container:
docker run --rm -it -v "$(shell pwd)":/home/Project mmp R
code_container:
docker run --rm -v "$(shell pwd)":/home/Project mmp $(MAKE) -f scripts/Makefile
docs_container:
docker run --rm -v "$(shell pwd)":/home/Project mmp $(MAKE) -f docs/Makefile
# docker run --rm -v "$(pwd):/home/Project" mmp $(MAKE) -f docs/Makefile
code_singularity:
$(MAKE) -f scripts/Makefile singularity
code_local:
$(MAKE) -f scripts/Makefile
docs_local:
$(MAKE) -f docs/Makefile
clean:
rm -f *.log *.aux *.md *.out texput.log