diff --git a/Makefile.am b/Makefile.am
index 2b1b9ac..2cbfed2 100644
--- a/Makefile.am
+++ b/Makefile.am
confdir = $(sysconfdir)/bluetooth
statedir = $(localstatedir)/lib/bluetooth
+install-data-hook:
+ install -dm555 $(DESTDIR)$(confdir)
+ install -dm700 $(DESTDIR)$(statedir)
+
if DATAFILES
dbusdir = $(DBUS_CONFDIR)/dbus-1/system.d
dbus_DATA = src/bluetooth.conf
-conf_DATA =
+conf_DATA = src/main.conf
+conf_DATA += profiles/input/input.conf
+conf_DATA += profiles/network/network.conf
state_DATA =
endif
diff --git a/Makefile.mesh b/Makefile.mesh
index ea50383..e4c9fa6 100644
--- a/Makefile.mesh
+++ b/Makefile.mesh
if DATAFILES
dbus_DATA += mesh/bluetooth-mesh.conf
+conf_DATA += mesh/mesh-main.conf
endif
if SYSTEMD