-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
38 lines (27 loc) · 869 Bytes
/
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
test:
python -m unittest discover -p "*_test.py"
deps:
pip install -r requirements.txt
mqtt-broker:
apt-get install mosquitto
# https://github.com/jgarff/rpi_ws281x
# https://tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/
scons:
sudo apt-get install gcc make build-essential python-dev git scons swig
ws281x:
echo "tbd"
run:
python3 -m mrd.display_main
run-backlight:
sudo python -m mrd.backlight.mqtt_service & sudo echo $$! > .mqtt-service.pid
stop-backlight:
if [ -e .mqtt-service.pid ]; then \
( sudo kill -SIGTERM $$(cat .mqtt-service.pid) & sudo rm .mqtt-service.pid ) || true; \
fi;
sudo python -m mrd.backlight.turn_off_backlight
restart-backlight-service:
systemctl restart backlight
restart-mrd-service:
systemctl restart mrd
restart-services: restart-backlight-service restart-mrd-service
.PHONY: test