From af9464b0f2bd61c07e5b29f0916b363e4506e013 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 19 Dec 2012 15:03:45 +0100 Subject: [PATCH] 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. --- Makefile.am | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index a482b544c..fbabf022f 100644 --- a/Makefile.am +++ b/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) -- 2.47.3