-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (39 loc) · 1.31 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
_bin = ./node_modules/.bin/
_gulp = ../node_modules/.bin/gulp
gulp-watch:
cd gulp && ${_gulp} watch
gulp-build:
cd gulp && ${_gulp} --production
install:
npm install
cp .env-example .env
server-prod:
# init forever
@${_bin}forever start index.js
server-dev:
# init nodemon
@${_bin}nodemon index.js
deploy:
ssh [email protected] 'cd tv-remote && git checkout .'
ssh [email protected] 'cd tv-remote && git pull origin master'
ssh [email protected] 'cd tv-remote && make gulp-build'
############################
# CEC install commands
############################
cec-install-dep:
sudo apt-get update
sudo apt-get install -y cmake libudev-dev libxrandr-dev python-dev swig
cec-install-platform:
git clone https://github.com/Pulse-Eight/platform.git ${HOME}/platform
mkdir ${HOME}/platform/build
cd ${HOME}/platform/build && cmake ..
cd ${HOME}/platform/build && make
cd ${HOME}/platform/build && sudo make install
cec-install-libcec:
git clone https://github.com/Pulse-Eight/libcec.git ${HOME}/libcec
mkdir ${HOME}/libcec/build
cd ${HOME}/libcec/build && cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
cd ${HOME}/libcec/build && make -j4
cd ${HOME}/libcec/build && sudo make install
cd ${HOME}/libcec/build && sudo ldconfig
install-cec: cec-install-dep cec-install-platform cec-install-libcec