-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 1.02 KB
/
Makefile
File metadata and controls
35 lines (30 loc) · 1.02 KB
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
PYTEST=pytest
# Colours.
CLEAR=\033[0m
RED=\033[0;31m
GREEN=\033[0;32m
CYAN=\033[0;36m
# Define the params of the help command.
help:
@echo "usage: make <target>"
@echo " $(CYAN)poetry$(CLEAR): Initialises the poetry environment and install dependancies"
@echo " $(CYAN)install$(CLEAR): Installs arnold on the raspberrypi."
@echo " $(CYAN)test$(CLEAR): Run unittest suite."
# Installs the python dependancies.
poetry:
@echo "$(CYAN)Installing python deps...$(CLEAR)"
poetry install --without rpi
@echo "$(GREEN)DONE$(CLEAR)"
# Installs arnold on the raspberrypi.
install:
@echo "$(CYAN)Installing Arnold...$(CLEAR)"
@sudo apt update -y
@sudo apt upgrade -y
@sudo apt install -y portaudio19-dev python3-dev flac libespeak1 espeak ffmpeg python3-opencv \
python3-picamera2 libatlas-base-dev libatlas3-base libcap-dev libcamera-dev libkms++-dev \
libfmt-dev libdrm-dev
poetry install --without dev
# Run unittest suite.
test: poetry
@echo "$(CYAN)Running unittests...$(CLEAR)"
GPIOZERO_PIN_FACTORY=mock $(PYTEST) arnold