forked from ebranlard/matlab2python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.1 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
45
46
MAIN=matlab2python.py
# --- Detecting OS: Windows, Darwin
ifeq '$(findstring ;,$(PATH))' ';'
detected_OS := Windows
else
detected_OS := $(shell uname 2>/dev/null || echo Unknown)
detected_OS := $(patsubst CYGWIN%,Cygwin,$(detected_OS))
detected_OS := $(patsubst MSYS%,MSYS,$(detected_OS))
detected_OS := $(patsubst MINGW%,MSYS,$(detected_OS))
endif
all: singletest
singletest:
python $(MAIN) tests/files/TestClass.m
install:
python setup.py install
dep:
python -m pip install -r requirements.txt
help:
@echo "Available rules:"
@echo " all run the standalone program"
@echo " install install the python package in the system"
@echo " pull download the latest version "
@echo " test run the unit tests "
test:
python -m unittest discover -v
prof:
python -m cProfile -o _tests/prof_all.prof _tests/prof_all.py
python -m pyprof2calltree -i _tests/prof_all.prof -o _tests/callgrind.prof_all.prof
snakeviz _tests/prof_all.prof
clean:
rm -rf __pycache__
rm -rf *.egg-info
rm -rf *.spec
rm -rf build*
rm -rf dist
pyexe:
pyinstaller --onedir $(MAIN)