aboutsummaryrefslogtreecommitdiffstats
path: root/udev-config/Makefile
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2008-06-03 21:51:14 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2008-06-03 21:51:14 +0000
commit1c4800743d22d675ccfa48364d8aa558e8b7407c (patch)
treeca4254cbe5dd5adb0ed8af1f87c26bc569403164 /udev-config/Makefile
parent9faa3e27afb932894ace74854fbb76631022446b (diff)
Moved bootscripts and udev-config to BOOK
Updated Makefile to automatically generate bootscript and udev-config tarballs Updated licesnse to be the same as BLFS git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'udev-config/Makefile')
-rw-r--r--udev-config/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/udev-config/Makefile b/udev-config/Makefile
new file mode 100644
index 000000000..18451cd48
--- /dev/null
+++ b/udev-config/Makefile
@@ -0,0 +1,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