-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 1.05 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
.PHONY: default test-python test-pipenv run-drexeleds run-drexeleds-single run-wikiwatershed timing tolerance tolerance-single
PYTHON := $(shell command -v python 2> /dev/null)
PIPENV := $(shell command -v pipenv 2> /dev/null)
default: test-python test-pipenv install run-drexeleds run-wikiwatershed timing tolerance
test-python:
ifndef PYTHON
$(error "Please install python")
endif
test-pipenv:
ifndef PIPENV
$(error "Please install pipenv")
endif
install:
bash -c "cd drexeleds; pipenv install"
bash -c "cd wikiwatershed; pipenv install"
bash -c "cd main; pipenv install"
run-drexeleds:
bash -c "cd drexeleds; pipenv run python main.py"
run-drexeleds-single:
bash -c "cd drexeleds; ls -1 ../tests/ | xargs -I name pipenv run python single.py name"
run-wikiwatershed:
bash -c "cd wikiwatershed; pipenv run python main.py"
timing:
bash -c "cd main; pipenv run python timing.py"
tolerance:
bash -c "cd main; pipenv run python tolerance.py 0.00000000000001"
tolerance-single:
bash -c "cd main; pipenv run python tolerance.py 0.00000000000001 --single"