mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
build: Don't create empty udev rules.d directory
When UDEV_DIR is empty it will create "/rules.d" directory which is not desired. So check for enabled HID2HCI support before installing any udev rules.
This commit is contained in:
parent
61c448fea1
commit
af9464b0f2
10
Makefile.am
10
Makefile.am
@ -174,20 +174,16 @@ test_scripts =
|
||||
include Makefile.tools
|
||||
include Makefile.obexd
|
||||
|
||||
if HID2HCI
|
||||
rulesdir = @UDEV_DIR@/rules.d
|
||||
|
||||
udev_files =
|
||||
rules_DATA = tools/97-hid2hci.rules
|
||||
|
||||
if HID2HCI
|
||||
udev_files += tools/hid2hci.rules
|
||||
CLEANFILES += $(rules_DATA)
|
||||
endif
|
||||
|
||||
EXTRA_DIST += tools/hid2hci.rules
|
||||
|
||||
rules_DATA = $(foreach file,$(udev_files), tools/97-$(notdir $(file)))
|
||||
|
||||
CLEANFILES += $(rules_DATA)
|
||||
|
||||
if TEST
|
||||
testdir = $(pkglibdir)/test
|
||||
test_SCRIPTS = $(test_scripts)
|
||||
|
Loading…
Reference in New Issue
Block a user