-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 863 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
#
#Makefile for wall-desk
#In case reading my code I do recomend https://www.suicideline.org.au/
#
DIR="./wall-desk"
# Values
PYTHON3 := $(shell command -v python3.7 2>/dev/null)
PIP3 := $(command -v pip3 2>/dev/null)
install:
ifdef PIP3
@echo $(ccgreen)"[INFO] Installing PIP3"$(ccend)
@curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
@sudo python3 get-pip.py --user
endif
ifdef PYTHON3
@pip3 install numpy --user
@pip3 install opencv-python --user
@pip3 install astral --user
@pip3 install python-dateutil --user
@pip3 install Pillow --user
@pip3 install getch --user
@pip3 install pyyaml --user
else
@echo $(ccred)"[Error] python3.7 is not installed exiting..."$(ccend)
endif
build:
cd $(DIR) && zip -r "../app.zip" * && cd ..
echo '#!/usr/local/bin/python3' | cat - app.zip > walld
chmod +x walld
clean:
rm app.zip
rm walld