-
Notifications
You must be signed in to change notification settings - Fork 155
/
Makefile
32 lines (27 loc) · 1.53 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
configure:
git submodule update --init && cd cpp_solutions/third_party/eigen && rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install && cd ../../../.. && rm -rf build && mkdir build && cd build && cmake ..
configure-mac:
git submodule update --init && ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" && brew install python && easy_install pip && pip install numpy && cd cpp_solutions/third_party/eigen && rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install && cd ../../../.. && rm -rf build && mkdir build && cd build && cmake ..
configure-ubuntu:
git submodule update --init && sudo apt-get install -y build-essential cmake python3 python3-numpy && cd cpp_solutions/third_party/eigen && rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install && cd ../../../.. && rm -rf build && mkdir build && cd build && cmake ..
clean:
rm -rf build && mkdir build && cd build && cmake ..
test:
@echo ---------------------
@echo TESTING C++ SOLUTIONS
@echo ---------------------
cd build && make -j6 && ./tests
@echo ------------------------
@echo TESTING PYTHON SOLUTIONS
@echo ------------------------
python3 tests.py
test_coverage:
@echo ---------------------
@echo TESTING C++ SOLUTIONS
@echo ---------------------
cd build && make -j6 && ./tests
@echo ------------------------
@echo TESTING PYTHON SOLUTIONS
@echo ------------------------
coverage run --source=python_solutions tests.py
coverage report -m