summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-05 09:34:00 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-07-05 09:34:00 -0700
commitb7a5a90b733986e696527894d17e9d1a79cc9c51 (patch)
tree1644cfe9b38c5e93d4f2b8d6ca297dcb948851a0 /scripts
parent876f6ccfbdbbaa66d2b8f0ba48bf17188902838d (diff)
downloadbluez-b7a5a90b733986e696527894d17e9d1a79cc9c51.tar.gz
Install udev rules with a proper prefix number
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index ce8366a17..c32307379 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -2,14 +2,14 @@
if UDEVRULES
rulesdir = $(sysconfdir)/udev
-rules_DATA = bluetooth.rules
+rules_DATA = 97-bluetooth.rules
if HID2HCI
-rules_DATA += bluetooth-hid2hci.rules
+rules_DATA += 97-bluetooth-hid2hci.rules
endif
if PCMCIA
-rules_DATA += bluetooth-serial.rules
+rules_DATA += 97-bluetooth-serial.rules
endif
endif
@@ -19,7 +19,18 @@ udevdir = $(libexecdir)/udev
udev_SCRIPTS = bluetooth_serial
endif
+CLEANFILES = $(rules_DATA)
+
EXTRA_DIST = bluetooth.init bluetooth.default bluetooth.rules \
bluetooth-hid2hci.rules bluetooth-serial.rules bluetooth_serial
MAINTAINERCLEANFILES = Makefile.in
+
+97-bluetooth.rules: bluetooth.rules
+ cp $< $@
+
+97-bluetooth-hid2hci.rules: bluetooth-hid2hci.rules
+ cp $< $@
+
+97-bluetooth-serial.rules: bluetooth-serial.rules
+ cp $< $@