mirror of
https://github.com/dynup/kpatch
synced 2024-12-14 17:34:34 +00:00
5932f0d083
Make it easy to clean up an install Signed-off-by: Seth Jennings <sjenning@redhat.com>
26 lines
440 B
Makefile
26 lines
440 B
Makefile
include ../Makefile.inc
|
|
|
|
CFLAGS += -I../kmod/patch -Wall -g
|
|
LDFLAGS = -lelf
|
|
|
|
TARGETS = create-diff-object add-patches-section link-vmlinux-syms
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
%: %.c
|
|
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
|
|
|
install: all
|
|
$(INSTALL) -d $(LIBEXECDIR)
|
|
$(INSTALL) $(TARGETS) $(LIBEXECDIR)
|
|
$(INSTALL) -d $(BINDIR)
|
|
$(INSTALL) kpatch-build $(BINDIR)
|
|
|
|
uninstall:
|
|
$(RM) -R $(LIBEXECDIR)
|
|
$(RM) $(BINDIR)/kpatch-build
|
|
|
|
clean:
|
|
$(RM) $(TARGETS)
|