forked from icarus-sim/icarus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1003 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
36
37
38
39
40
41
42
43
44
45
46
47
SHELL = /bin/bash
DOC_DIR = doc
PYTHON_VERSION ?= 3.7
.PHONY: install test doc docclean docupload clean distclean build-container docker-shell
all: install
build-container:
docker build --build-arg PYTHON_VERSION=$(PYTHON_VERSION) -t icarus .
docker-shell: build-container
docker run --rm -it icarus
# Install all dependencies as well as Icarus in developer mode
install:
pip install --upgrade pip setuptools
pip install --upgrade -r requirements.txt
pip install --upgrade -e .
# Run all test cases
test:
py.test icarus
# Build HTML documentation
doc: docclean
make -C $(DOC_DIR) html
# Clean documentation
docclean:
make -C $(DOC_DIR) clean
# Upload documentation to Icarus website
# requires write permissions to icarus-sim/icarus-sim.github.io
docupload:
make -C $(DOC_DIR) upload
# Delete temp files
clean: docclean distclean
find . -name "*__pycache__" | xargs rm -rf
find . -name "*.pyc" | xargs rm -rf
# Delete build files
distclean:
rm -rf icarus.egg-info MANIFEST dist