From 735dfcb0051c7435996e09f3f2fcbfe06402da28 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Tue, 15 Jul 2014 12:45:29 -0500 Subject: [PATCH] allow user-defined LIBDIR in install paths User reported cases where libraries are in lib32/64 directories, not lib. Allow the user to override by setting LIBDIR. Fixes #167 Signed-off-by: Seth Jennings --- Makefile.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 8194aaf..9ef569f 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -4,13 +4,14 @@ CC = gcc INSTALL = /usr/bin/install PREFIX ?= /usr/local +LIBDIR ?= lib BINDIR = $(DESTDIR)$(PREFIX)/bin SBINDIR = $(DESTDIR)$(PREFIX)/sbin -MODULESDIR = $(DESTDIR)$(PREFIX)/lib/modules +MODULESDIR = $(DESTDIR)$(PREFIX)/$(LIBDIR)/modules LIBEXECDIR = $(DESTDIR)$(PREFIX)/libexec/kpatch DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 -DRACUTDIR = $(DESTDIR)/usr/lib/dracut/modules.d/99kpatch +DRACUTDIR = $(DESTDIR)/usr/$(LIBDIR)/dracut/modules.d/99kpatch .PHONY: all install clean .DEFAULT: all