mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 21:52:07 +00:00
e9b9654602
In some cases when packaging it may not be useful to build kmod/core at package build time (for example if using DKMS). Add a parameter 'BUILDMOD' that when set to 'yes' will build kmod/core. Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
20 lines
500 B
Makefile
20 lines
500 B
Makefile
SHELL = /bin/sh
|
|
CC = gcc
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
PREFIX ?= /usr/local
|
|
LIBDIR ?= lib
|
|
LIBEXEC ?= libexec
|
|
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
|
SBINDIR = $(DESTDIR)$(PREFIX)/sbin
|
|
MODULESDIR = $(DESTDIR)$(PREFIX)/$(LIBDIR)/kpatch
|
|
LIBEXECDIR = $(DESTDIR)$(PREFIX)/$(LIBEXEC)/kpatch
|
|
DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch
|
|
MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
|
|
SYSTEMDDIR = $(DESTDIR)$(PREFIX)/lib/systemd/system
|
|
BUILDMOD ?= yes
|
|
|
|
.PHONY: all install clean
|
|
.DEFAULT: all
|