blob: 18451cd48dd609967326ae592f9883ff7be116aa (
plain)
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
|
# Makefile to install udev rules and documentation
PREFIX = /usr
RULES_DIR = /etc/udev/rules.d
INSTALL = install
INSTALL_DATA = $(INSTALL) -m644
RULES_FILES = \
55-lfs.rules \
61-cdrom.rules
DOC_FILES = $(RULES_FILES:.rules=.txt)
EXTRA_DOC_FILES = \
05-udev-early.txt \
60-persistent-input.txt \
60-persistent-storage.txt \
80-drivers.txt \
95-udev-late.txt
# Location to install the docs
DOC_DIR = $(PREFIX)/share/doc/udev-config
all:
install: install-rules
install-rules:
$(INSTALL) -d $(DESTDIR)$(RULES_DIR)
for rule in $(RULES_FILES); do \
$(INSTALL_DATA) $$rule $(DESTDIR)$(RULES_DIR) || exit 1; \
done;
install-doc:
$(INSTALL) -d $(DESTDIR)$(DOC_DIR)
for doc in $(DOC_FILES); do \
$(INSTALL_DATA) doc/$$doc $(DESTDIR)$(DOC_DIR) || exit 1; \
done
install-extra-doc:
$(INSTALL) -d $(DESTDIR)$(DOC_DIR)
for doc in $(EXTRA_DOC_FILES); do \
$(INSTALL_DATA) doc/$$doc $(DESTDIR)$(DOC_DIR) || exit 1; \
done
|