mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
0e038d1b86
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9170 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
29 lines
624 B
Makefile
29 lines
624 B
Makefile
# 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
|
|
DOC_FILES = $(RULES_FILES:.rules=.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
|