diff --git a/.gitignore b/.gitignore
index 078c4ac..b0ab485 100644
--- a/.gitignore
+++ b/.gitignore
lib/bluetooth
src/builtin.h
src/bluetoothd
-scripts/97-bluetooth-hid2hci.rules
+tools/97-hid2hci.rules
profiles/sap/sap.c
profiles/cups/bluetooth
diff --git a/Makefile.am b/Makefile.am
index b91d979..1df98e3 100644
--- a/Makefile.am
+++ b/Makefile.am
include Makefile.tools
include Makefile.obexd
-if DATAFILES
rulesdir = @UDEV_DIR@/rules.d
udev_files =
if HID2HCI
-udev_files += scripts/bluetooth-hid2hci.rules
+udev_files += tools/hid2hci.rules
endif
-rules_DATA = $(foreach file,$(udev_files), scripts/97-$(notdir $(file)))
-endif
+EXTRA_DIST += tools/hid2hci.rules
-CLEANFILES += $(rules_DATA)
+rules_DATA = $(foreach file,$(udev_files), tools/97-$(notdir $(file)))
-EXTRA_DIST += scripts/bluetooth-hid2hci.rules
+CLEANFILES += $(rules_DATA)
EXTRA_DIST += doc/adapter-api.txt doc/device-api.txt doc/profile-api.txt \
doc/service-api.txt doc/agent-api.txt doc/attribute-api.txt \
src/builtin.h: src/genbuiltin $(builtin_sources)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
-scripts/%.rules:
+tools/%.rules:
$(AM_V_GEN)cp $(subst 97-,,$@) $@
$(lib_libbluetooth_la_OBJECTS): $(local_headers)
diff --git a/scripts/bluetooth-hid2hci.rules b/tools/hid2hci.rules
similarity index 100%
rename from scripts/bluetooth-hid2hci.rules
rename to tools/hid2hci.rules