This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
80 lines (63 loc) · 2.25 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PYTHON := python
VENV := .env-python-dev
$(VENV)/bin/python:
[ -d $(VENV) ] || $(PYTHON) -m virtualenv $(VENV) || virtualenv $(VENV)
$(VENV)/bin/pip install --upgrade setuptools pip
# For bugzilla
$(VENV)/bin/pip install -U -e git+git://github.com/jbalogh/check.git#egg=check
$(VENV)/bin/pip install -U -e git+git://github.com/askeing/remoteobjects.git#egg=remoteobjects
$(VENV)/bin/pip install -U -e git+git://github.com/askeing/bztools.git#egg=bztools
$(VENV)/bin/pip install -Ur requirements.txt
$(VENV)/bin/pip install -Ur ejenti/requirements.txt
$(VENV)/bin/python setup.py develop
.PHONY: dev-env
dev-env: $(VENV)/bin/python
.PHONY: requirements
requirements: $(VENV)/bin/python
$(VENV)/bin/pip install -Ur requirements.txt
$(VENV)/bin/pip install -Ur ejenti/requirements.txt
$(VENV)/bin/python setup.py develop
# for testing
.PHONY: test
test:
./mach test-config
./mach test-tidy --no-progress --all
.PHONY: unit
unit: $(VENV)/bin/python
$(VENV)/bin/python -m unittest discover -t . -s unit -v
#########################################
# Original Out-of-date Makefile scripts #
#########################################
install: venv-install pip-install video-recording-libs-install
opencv-install:
wget https://github.com/Itseez/opencv/archive/3.0.0.zip
unzip ./3.0.0.zip
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake git pkg-config
sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libatlas-base-dev gfortran
video-recording-libs-install:
sudo apt-get install wget libav-tools ffmpeg libavc1394-0 libavformat-extra-53 libavfilter2 libavutil-extra-51 mencoder libavahi-common-data
venv-install:
ifndef VIRTUAL_ENV
virtualenv $(VENV)
endif
cv2-install-venv:
cd $(VENV)/lib/python2.7/site-packages
ln -s /usr/local/lib/python2.7/dist-packages/cv2.so cv2.so
cd ../../..
pip-install:
source $(VENV)/bin/activate
pip install selenium
pip install numpy
clean:
find . -name "*.pyc" -type f -delete
rm -rf $(VENV)
rm -rf python/_virtualenv
rm -rf output/images/output/*
rm -rf output/images/sample/*
rm -rf output/profiles/*
rm -rf output/videos/*