makefile 688 Bytes
Newer Older
1 2 3 4
VIRTUALENV := venv
PYTHON := python2.7
PYTHON_BIN_PATH := /usr/local/bin/$(PYTHON)
SITE_PACKAGES := $(VIRTUALENV)/lib/$(PYTHON)/site-packages
Richard Torenvliet's avatar
Richard Torenvliet committed
5

6 7 8 9 10
OPENCV := $(SITE_PACKAGES)/cv.py $(SITE_PACKAGES)/cv2.so

TARGETS := $(OPENCV) $(VIRTUALENV) data reconstruction

include build.mk
Richard Torenvliet's avatar
Richard Torenvliet committed
11

12
all: $(TARGETS)
13

14
include actions.mk
15
include src/reconstruction/build.mk
16

17
data: data/imm_face_db
18
reconstruction: texture.so
19

20
OS := $(shell uname)
21

22
build: requirements.txt
23 24 25
	@(source $(VIRTUALENV)/bin/activate; \
		pip install -r requirements.txt; \
	);
26

27 28
$(VIRTUALENV):
	virtualenv -p $(PYTHON_BIN_PATH) venv
29

30 31 32
$(SITE_PACKAGES)/cv%:
	@/bin/ln -s `scripts/get_site_package_location.sh`/$(shell basename $@) $@
	@ls $@