changeset 45:05424917a022

add a rule to install an udev rule file
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 19 Jul 2009 03:07:46 +0900
parents 07d71b1484a8
children 33c899c6cc9d
files driver/Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/driver/Makefile	Sun Jul 19 03:00:15 2009 +0900
+++ b/driver/Makefile	Sun Jul 19 03:07:46 2009 +0900
@@ -8,7 +8,7 @@
 clean:
 	make -C /lib/modules/`uname -r`/build M=`pwd` V=1 clean
 
-obj-m:= pt1_drv.o
+obj-m := pt1_drv.o
 
 pt1_drv-objs := pt1_pci.o pt1_i2c.o pt1_tuner.o pt1_tuner_data.o
 
@@ -16,3 +16,6 @@
 
 install: $(TARGET)
 	install -m 644 $(TARGET) /lib/modules/`uname -r`/kernel/drivers/video
+	if [ -d /etc/udev/rules.d -a ! -f /etc/udev/rules.d/99-pt1.rules ] ; then \
+		install -m 644 etc/99-pt1.rules /etc/udev/rules.d ; \
+	fi