diff mbox series

[BlueZ,3/4] build: drop %.rules make rule

Message ID 20240214-hook-fixup-v1-3-0e158ffea140@gmail.com (mailing list archive)
State Superseded
Headers show
Series Handful of build fixes and cleanups | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS

Commit Message

Emil Velikov via B4 Relay Feb. 14, 2024, 10:01 p.m. UTC
From: Emil Velikov <emil.l.velikov@gmail.com>

There's a single file, so we can drop the makefile rule and rename it
accordingly.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 Makefile.am                               | 8 +-------
 tools/{hid2hci.rules => 97-hid2hci.rules} | 0
 2 files changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index e67551761..b0845e707 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -435,11 +435,9 @@  if HID2HCI
 rulesdir = $(UDEV_DIR)/rules.d
 
 rules_DATA = tools/97-hid2hci.rules
-
-CLEANFILES += $(rules_DATA)
 endif
 
-EXTRA_DIST += tools/hid2hci.rules
+EXTRA_DIST += tools/97-hid2hci.rules
 
 if TEST
 testdir = $(pkglibdir)/test
@@ -764,10 +762,6 @@  endif
 src/builtin.h: src/genbuiltin $(builtin_sources)
 	$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
 
-tools/%.rules:
-	$(AM_V_at)$(MKDIR_P) tools
-	$(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
-
 $(lib_libbluetooth_la_OBJECTS): $(local_headers)
 
 lib/bluetooth/%.h: lib/%.h
diff --git a/tools/hid2hci.rules b/tools/97-hid2hci.rules
similarity index 100%
rename from tools/hid2hci.rules
rename to tools/97-hid2hci.rules