Add install target
This target installs sysbacklight for all users with setuid as the README suggests, supporting 'PREFIX' and 'DESTDIR' with 'PREFIX = /usr/local' as default.
CFLAGS?=$(shell pkg-config --cflags libsysfs) -Wall -std=c99
LDFLAGS?=$(shell pkg-config --libs libsysfs)
+PREFIX ?= /usr/local
all: sysbacklight
%.o: %.c
$(CC) -c -o $@ $(CFLAGS) $<
+install:
+ install -m 4755 sysbacklight $(DESTDIR)$(PREFIX)/bin
+
+
+
clean:
rm -f sysbacklight sysbacklight.o