diff mbox series

[BlueZ,v2,02/10] build: install obexd (dbus,systemd} services as needed

Message ID 20240216-hook-fixup-v2-2-a6b192d1a6ad@gmail.com (mailing list archive)
State Accepted
Commit c2b9f357d52207ef22c9a4880cc0b5c7e8f11c5b
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
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

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

Currently we ship the service files, even when built with
--disable-obex.

Move the "if OBEX" guard few lines further up.
---
 Makefile.obexd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile.obexd b/Makefile.obexd
index 0e8bc6de7..e8e4a6144 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -1,4 +1,6 @@ 
 # SPDX-License-Identifier: GPL-2.0
+if OBEX
+
 if SYSTEMD
 systemduserunitdir = $(SYSTEMD_USERUNITDIR)
 systemduserunit_DATA = obexd/src/obex.service
@@ -16,7 +18,6 @@  endif
 dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
 
-if OBEX
 
 obex_plugindir = $(libdir)/obex/plugins