Mercurial > pt1
comparison driver/Makefile @ 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 | 65c8ac567074 |
children | 7a03d5185067 |
comparison
equal
deleted
inserted
replaced
44:07d71b1484a8 | 45:05424917a022 |
---|---|
6 make -C /lib/modules/`uname -r`/build M=`pwd` V=1 modules | 6 make -C /lib/modules/`uname -r`/build M=`pwd` V=1 modules |
7 | 7 |
8 clean: | 8 clean: |
9 make -C /lib/modules/`uname -r`/build M=`pwd` V=1 clean | 9 make -C /lib/modules/`uname -r`/build M=`pwd` V=1 clean |
10 | 10 |
11 obj-m:= pt1_drv.o | 11 obj-m := pt1_drv.o |
12 | 12 |
13 pt1_drv-objs := pt1_pci.o pt1_i2c.o pt1_tuner.o pt1_tuner_data.o | 13 pt1_drv-objs := pt1_pci.o pt1_i2c.o pt1_tuner.o pt1_tuner_data.o |
14 | 14 |
15 clean-files := *.o *.ko *.mod.[co] *~ | 15 clean-files := *.o *.ko *.mod.[co] *~ |
16 | 16 |
17 install: $(TARGET) | 17 install: $(TARGET) |
18 install -m 644 $(TARGET) /lib/modules/`uname -r`/kernel/drivers/video | 18 install -m 644 $(TARGET) /lib/modules/`uname -r`/kernel/drivers/video |
19 if [ -d /etc/udev/rules.d -a ! -f /etc/udev/rules.d/99-pt1.rules ] ; then \ | |
20 install -m 644 etc/99-pt1.rules /etc/udev/rules.d ; \ | |
21 fi |