-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (18 loc) · 602 Bytes
/
makefile
File metadata and controls
26 lines (18 loc) · 602 Bytes
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
SHELL:=/bin/bash
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: all fresh dependencies clean package
all: dependencies
fresh: clean dependencies
clean:
rm -rf $(ROOT_DIR)/gitconsensus/*.pyc
rm -rf $(ROOT_DIR)/env
rm -rf $(ROOT_DIR)/dist
rm -rf $(ROOT_DIR)/build
rm -rf $(ROOT_DIR)/*.egg-info
dependencies:
if [ ! -d $(ROOT_DIR)/env ]; then python3 -m venv $(ROOT_DIR)/env; fi
source $(ROOT_DIR)/env/bin/activate; yes w | python -m pip install -e .[dev]
test:
python setup.py test
package:
source $(ROOT_DIR)/env/bin/activate; python setup.py bdist_wheel