-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (22 loc) · 1.14 KB
/
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
PREFIX?=/usr
CC=gcc
#CFLAGS=-g -O2 -Wall -D_REENTRANT `pkg-config --cflags libadwaita-1`
#LIBS=`pkg-config --libs libadwaita-1`
CFLAGS=-g -O2 -Wall -D_REENTRANT `pkg-config --cflags gtk4`
LIBS=`pkg-config --libs gtk4`
OBJ=librem-control.o ec-tool.o
PRG=librem-control
all: $(PRG)
$(PRG): $(OBJ)
$(CC) $(OBJ) -o $(PRG) $(LIBS)
install:
install -D $(PRG) $(DESTDIR)$(PREFIX)/bin/$(PRG)
install -m 0644 -D org.freedesktop.policykit.librem-control.policy $(DESTDIR)$(PREFIX)/share/polkit-1/actions/org.freedesktop.policykit.librem-control.policy
install -m 0644 -D librem-control.desktop $(DESTDIR)$(PREFIX)/$(prefix)/share/applications/librem-control.desktop
install -m 0644 -D data/icons/sm.puri.Librem-Control.svg $(DESTDIR)$(PREFIX)/$(prefix)/share/icons/hicolor/scalable/apps/sm.puri.Librem-Control.svg
install -m 0644 -D data/icons/sm.puri.Librem-Control-symbolic.svg $(DESTDIR)$(PREFIX)/$(prefix)/share/icons/hicolor/symbolic/apps/sm.puri.Librem-Control-symbolic.svg
deb:
fakeroot debian/rules binary
clean:
rm -f $(PRG) $(OBJ)
rm -rf debian/.debhelper debian/librem-control debian/librem-control.substvars debian/files debian/debhelper-build-stamp