mirror of https://github.com/dynup/kpatch
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 <sjenning@redhat.com>
This commit is contained in:
parent
576ee09442
commit
735dfcb005
|
@ -4,13 +4,14 @@ CC = gcc
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/install
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
LIBDIR ?= lib
|
||||||
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
||||||
SBINDIR = $(DESTDIR)$(PREFIX)/sbin
|
SBINDIR = $(DESTDIR)$(PREFIX)/sbin
|
||||||
MODULESDIR = $(DESTDIR)$(PREFIX)/lib/modules
|
MODULESDIR = $(DESTDIR)$(PREFIX)/$(LIBDIR)/modules
|
||||||
LIBEXECDIR = $(DESTDIR)$(PREFIX)/libexec/kpatch
|
LIBEXECDIR = $(DESTDIR)$(PREFIX)/libexec/kpatch
|
||||||
DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch
|
DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch
|
||||||
MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
|
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
|
.PHONY: all install clean
|
||||||
.DEFAULT: all
|
.DEFAULT: all
|
||||||
|
|
Loading…
Reference in New Issue