libvolume_id: Don't create /usr hierarchy when ${prefix}
PATCH 2/2 libvolume_id: Don't create /usr hierarchy when ${prefix}
When libvolume_id is being installed to a non-/ location such as /usr/local, we don't want to setup the /usr/{include,lib} hierarchy. GNU make conditionals are used to separate the case where prefix is unset or is / and retains the current udev behavior. When prefix is something else, libvolume_id will be installed in a flat fashion.
Signed-off-by Dan Nicholson <[email protected]>
--- extras/volume_id/lib/Makefile | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)
extras/volume_id/lib/Makefile +12 -2
@@ -4,9 +4,19 @@ # # Released under the GNU General Public License, version 2. # -includedir = ${prefix}/usr/include +ifndef prefix +includedir = /usr/include +libdir = /lib +usrlibdir = /usr/lib +else ifeq (${prefix},/) +includedir = /usr/include +libdir = /lib +usrlibdir = /usr/lib +else +includedir = ${prefix}/include libdir = ${prefix}/lib -usrlibdir = ${prefix}/usr/lib +usrlibdir = ${prefix}/lib +endif INSTALL = install -c INSTALL_DATA = ${INSTALL} -m 644
Signature · 12 lines
1.5.3.2 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel