~mil/sxmo-utils

ref: f058e173695853bf9c2bab071c94612fb249bad3 sxmo-utils/Makefile -rw-r--r-- 1.5 KiB
f058e173Miles Alan SIGKILL on close menu in dialer 1 year, 10 months ago
                                                                                
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
PREFIX:=/

.PHONY: install shellcheck

shellcheck:
	shellcheck scripts/*/*

programs/sxmo_setpineled:
	gcc -o programs/sxmo_setpineled programs/sxmo_setpineled.c

programs/sxmo_setpinebacklight:
	gcc -o programs/sxmo_setpinebacklight programs/sxmo_setpinebacklight.c

programs/sxmo_screenlock:
	gcc -o programs/sxmo_screenlock programs/sxmo_screenlock.c -lX11

programs/sxmo_megiaudioroute:
	gcc -o programs/sxmo_megiaudioroute programs/sxmo_megiaudioroute.c

programs/sxmo_vibratepine:
	gcc -o programs/sxmo_vibratepine programs/sxmo_vibratepine.c

install: programs/sxmo_setpineled programs/sxmo_setpinebacklight programs/sxmo_screenlock programs/sxmo_megiaudioroute programs/sxmo_vibratepine
	mkdir -p $(PREFIX)/usr/share/sxmo
	cp configs/* $(PREFIX)/usr/share/sxmo

	mkdir -p $(PREFIX)/etc/alsa/conf.d/
	cp configs/alsa_sxmo_enable_dmix.conf $(PREFIX)/etc/alsa/conf.d/

	mkdir -p $(PREFIX)/etc/polkit-1/rules.d
	cp configs/00-sxmo.rules $(PREFIX)/etc/polkit-1/rules.d/

	mkdir -p $(PREFIX)/usr/bin
	cp scripts/*/* $(PREFIX)/usr/bin

	chown root programs/sxmo_setpineled
	chmod u+s programs/sxmo_setpineled
	cp programs/sxmo_setpineled $(PREFIX)/usr/bin

	chown root programs/sxmo_setpinebacklight
	chmod u+s programs/sxmo_setpinebacklight
	cp programs/sxmo_setpinebacklight $(PREFIX)/usr/bin

	chown root programs/sxmo_screenlock
	chmod u+s programs/sxmo_screenlock
	cp programs/sxmo_screenlock $(PREFIX)/usr/bin

	cp programs/sxmo_megiaudioroute $(PREFIX)/usr/bin
	cp programs/sxmo_vibratepine $(PREFIX)/usr/bin