-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (37 loc) · 1.19 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
37
38
39
40
41
42
43
44
INCLUDE_REPO=https://github.com/masteringmatplotlib/includes.git
INCLUDE_DIR=include
NAME=cloud-deploy
NOTEBOOK=notebooks/mmpl-$(NAME).ipynb
-include include/common.mk
# The following target is intended for use by project-creators only. When
# creating a new notebook project, add a copy of this Makefile and run this
# target to get the includes set up:
#
# $ make setup-submodule
setup-submodule:
git submodule add $(INCLUDE_REPO) $(INCLUDE_DIR)
# The 'setup' target needs to be run before the 'project-deps' target,
# so that the includes are present (done by 'make project-setup').
#
# Note that this repo overrides the standard project deps to make
# installation in Docker easier.
deps: base-deps
. $(VENV)/bin/activate && \
pip3.4 install -r requirements/part1.txt
. $(VENV)/bin/activate && \
pip3.4 install -r requirements/part2.txt
setup:
@git submodule init
@git submodule update
@make project-setup
docker-setup:
@git submodule init
@git submodule update
pip3 install -r requirements/part2.txt
pip3 install -r requirements/part3.txt
clean-docker:
-docker rm $(shell docker ps -a -q)
docker rmi $(shell docker images -q --filter 'dangling=true')
.DEFAULT_GOAL :=
default: setup
make run