diff --git a/Makefile.tools b/Makefile.tools
index a99d768..4bc355c 100644
--- a/Makefile.tools
+++ b/Makefile.tools
endif
if MESH
+
+if DEPRECATED
bin_PROGRAMS += tools/meshctl
tools_meshctl_SOURCES = tools/meshctl.c \
lib/libbluetooth-internal.la \
$(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
+EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
+endif
+
bin_PROGRAMS += tools/mesh-cfgclient
tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
$(ell_ldadd)
endif
-EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
-
if DEPRECATED
bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
tools/rfcomm tools/sdptool tools/ciptool