aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3b9f72..8cbdd23 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,10 @@ install: adjbacklight
cp -- adjbacklight "$(DESTDIR)$(PREFIX)/bin"
cp -- adjbacklight.1 "$(DESTDIR)$(MANPREFIX)/man1"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/adjbacklight"
- chmod -- 4755 "$(DESTDIR)$(PREFIX)/bin/adjbacklight"
+
+post-install:
+ chown -- '0:$(VIDEO_GROUP)' "$(DESTDIR)$(PREFIX)/bin/adjbacklight"
+ chmod -- 4754 "$(DESTDIR)$(PREFIX)/bin/adjbacklight"
uninstall:
-rm -- "$(DESTDIR)$(PREFIX)/bin/adjbacklight"
@@ -38,4 +41,4 @@ uninstall:
clean:
-rm -rf -- adjbacklight test *.o .testdir
-.PHONY: all check install uninstall clean
+.PHONY: all check install post-install uninstall clean