-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
38 lines (31 loc) · 814 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
UNAME := $(shell uname -m)
ifeq ($(UNAME), aarch64)
CC=gcc
CXX=g++
else
CC=aarch64-linux-gnu-gcc
CXX=aarch64-linux-gnu-g++
endif
all: pine_gestures toggleflash
install:
mkdir -p /opt/pine_gestures
cp ./pine_gestures /usr/bin
cp ./toggleflash /usr/bin
cp ./startup_gestures.sh /opt/pine_gestures
cp gestures.service /etc/systemd/system/gestures.service
systemctl enable gestures.service
systemctl start gestures.service
uninstall:
systemctl stop gestures.service
systemctl disable gestures.service
rm /etc/systemd/system/gestures.service
rm -r /opt/pine_gestures
rm /usr/bin/pine_gestures
rm /usr/bin/toggleflash
pine_gestures:
$(CXX) -std=c++11 -o pine_gestures pine_gestures.cpp
toggleflash:
$(CXX) -std=c++11 -o toggleflash toggleflash.cpp
clean:
rm pine_gestures
rm toggleflash