diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2011-01-21 00:23:55 -0700 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2011-01-23 09:10:04 +0100 |
commit | f09f76e5da493b110054dbbcc80a2ced0981f4de (patch) | |
tree | 79e7feb68d99d728863ed70063126589aa53cb17 /Makefile.am | |
parent | 339b3945cba9e4afa8de1efe732e349937597d7c (diff) | |
download | libmtp-f09f76e5da493b110054dbbcc80a2ced0981f4de.tar.gz |
Allow setting the full path to udev rules.
It is now possible to pass e.g. --with-udev-rules-file=/path/to/my.rules
at configure time to set both the name of the udev rules file and its
location.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 4cb9772..200d5f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,16 +9,16 @@ EXTRA_DIST=libmtp.pc libmtp.sh COPYING README.windows.txt # This stuff only makes sense on Linux so only # build and ship it on Linux. if USE_LINUX -udevrulesdir=$(libexecdir)/rules.d -udevrules_DATA=@UDEV_RULES_FILE@ +udevrulesdir=$(prefix)/@UDEV_RULES_PATH@ +udevrules_DATA=@UDEV_RULES_NAME@ noinst_DATA=libmtp.usermap libmtp.fdi libmtp.usermap: util/mtp-hotplug util/mtp-hotplug > libmtp.usermap -@UDEV_RULES_FILE@: util/mtp-hotplug - util/mtp-hotplug -u > @UDEV_RULES_FILE@ +@UDEV_RULES_NAME@: util/mtp-hotplug + util/mtp-hotplug -u > @UDEV_RULES_NAME@ libmtp.fdi: util/mtp-hotplug util/mtp-hotplug -H > libmtp.fdi -CLEANFILES = libmtp.usermap @UDEV_RULES_FILE@ libmtp.fdi +CLEANFILES = libmtp.usermap @UDEV_RULES_NAME@ libmtp.fdi endif |