-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (38 loc) · 972 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
48
49
50
51
52
53
54
.DEFAULT_GOAL := all
all: install test
clean_build:
rm -rf build/
clean_dist:
rm -rf dist/
clean_eggs:
rm -rf *.egg-info
clean_mypy:
rm -rf .mypy_cache/
clean_docs:
rm -rf docs/build/*
clean_tests:
rm -rf /tmp/pytest*
clean: clean_dist clean_eggs clean_build clean_mypy clean_docs
_install:
# python setup.py sdist
# python -m pip wheel --no-index --no-deps --wheel-dir dist dist/*.tar.gz
# python -m pip install dist/*-py3-none-any.whl --user --upgrade
python -m pip install .
install:
${MAKE} clean
${MAKE} _install
${MAKE} clean
docs:
${MAKE} -C docs html
xdg-open docs/build/html/index.html
test:
python -m pytest imctransfer/ -m "not slow"
sync:
rsync --copy-links --progress -r \
. [email protected]:projects/imctransfer
run:
imctransfer
run_hpc:
srun --mem 4000 -c 1 -p panda imctransfer
.PHONY : clean_build clean_dist clean_eggs clean_mypy clean_docs clean_tests \
clean _install install clean_docs docs test sync