Fix up some probing stuff
diff --git a/INSTALL b/INSTALL
index 97180c6..64bd2b8 100644
--- a/INSTALL
+++ b/INSTALL
@@ -87,7 +87,7 @@
To build the package:
- % ./configure
+ % ./configure --libexecdir=/lib/udev
% make
% make install
@@ -97,17 +97,11 @@
sox' "play" program. If the default prefix for some reason fail,
try to tag on "--program-prefix=mtp-" to the "configure" command.
-On Linux you should then typically type (see below for details):
-
- % ./hotplug.sh
-
-you can achieve the same with
-
- % ./configure --enable-hotplugging
-
-you can turn off some speed enhancements (for testing) with:
-
- % ./configure --no-turbo
+The "--libexecdir=/lib/udev" parameter is a Linux pecularity to
+make the mtp-probe (which is built for Linux only) install into
+that directory. Library executables are executables bound to the
+library and for udev programs this specific directory shall hold
+such executables.
if you want to install the documentation type:
diff --git a/Makefile.am b/Makefile.am
index ae45606..87b9d52 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,6 +3,10 @@
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libmtp.pc
+
+udevrulesdir=$(libexecdir)/rules.d
+udevrules_DATA=libmtp.rules
+
EXTRA_DIST=libmtp.pc libmtp.sh COPYING README.windows.txt
noinst_DATA=libmtp.usermap libmtp.rules libmtp.fdi
libmtp.usermap: util/mtp-hotplug
diff --git a/util/Makefile.am b/util/Makefile.am
index 8e2b002..0bbf03a 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -1,4 +1,5 @@
-bin_PROGRAMS=mtp-hotplug mtp-probe
+bin_PROGRAMS=mtp-hotplug
+libexec_PROGRAMS=mtp-probe
mtp_hotplug_SOURCES=mtp-hotplug.c
mtp_probe_SOURCES=mtp-probe.c