2 ifneq ($(findstring movidius, $(PYTHONPATH)), movidius)
3 export PYTHONPATH:=/opt/movidius/caffe/python:$(PYTHONPATH)
9 @echo "\nmake help starting."
10 @echo "Make targets are:"
11 @echo " make help - shows this message"
12 @echo " make install - Installs the ncsdk."
13 @echo " make examples - makes the ncsdk examples."
14 @echo " make api - installs only the api. Ideal for RPi setup."
15 @echo " make uninstall - uninstalls the ncsdk."
16 @echo " make clean - removes targets and intermediate files."
25 .PHONY: uninstallopencv
31 @sed -i 's/\r//' ncsdk.conf
32 @if [ -e ncsdk_redirector.txt ] ; \
34 @sed -i 's/\r//' ncsdk_redirector.txt ; \
37 @sed -i 's/\r//' install.sh
38 @sed -i 's/\r//' uninstall.sh
39 @sed -i 's/\r//' README.md
41 @chmod +x uninstall.sh
42 @chmod +x install-opencv.sh
43 @chmod +x uninstall-opencv.sh
46 install: prereqs uninstallopencv
47 @echo "\nmake install starting."
52 @echo "\nmake uninstall starting."
56 examples: prereqs opencv
57 @echo "\nmake examples starting."
61 runexamples: prereqs opencv
62 @echo "\nmake examples starting."
63 (cd examples; make run)
67 @echo "\nmake api starting."
68 (cd api/src; make; sudo make install)
72 @echo "\nmake clean starting."
73 (cd examples; make clean)