Просмотр исходного кода

Merge pull request #28 from abdullahibnnadjo/master

Address #27
Joachim Nilsson 6 лет назад
Родитель
Сommit
8191c64a80
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 8 добавлений и 8 удалений
  1. 6
    8
      Makefile
  2. 2
    0
      README.md

+ 6
- 8
Makefile Просмотреть файл

@@ -18,17 +18,15 @@ endif
18 18
 	help2man $(MANFLAGS) ./light | gzip - > light.1.gz
19 19
 
20 20
 install: light man
21
-	mkdir -p $(BINDIR)
22
-	cp -f ./light $(BINDIR)/light
23
-	chown root $(BINDIR)/light
24
-	chmod 4755 $(BINDIR)/light
25
-	mkdir -p $(MANDIR)
26
-	mv light.1.gz $(MANDIR)
21
+	install -dZ $(BINDIR)
22
+	install -DZ -m 4755 ./light -t $(BINDIR)
23
+	install -dZ $(MANDIR)
24
+	install -DZ light.1.gz -t $(MANDIR)
27 25
 
28 26
 uninstall:
29
-	rm $(BINDIR)/light
27
+	rm -f $(BINDIR)/light
30 28
 	rm -rf /etc/light
31
-	rm $(MANDIR)/light.1.gz
29
+	rm -f $(MANDIR)/light.1.gz
32 30
 
33 31
 clean:
34 32
 	rm -vfr *~ light light.1.gz

+ 2
- 0
README.md Просмотреть файл

@@ -29,6 +29,8 @@ I recommend you go with light-git as you might miss important features and bugfi
29 29
 
30 30
 ### Manual
31 31
 
32
+You need the `help2man` package, required for install.
33
+
32 34
 `make && make install`
33 35
 
34 36
 **Optional:** If you want to use udev rules instead of suid to manage sysfs permissions, you may skip the `make install` step and instead add something like the following to `/etc/udev/rules.d/90-backlight.rules` after copying your binaries: