/usr/src/kpatch-0.3.2/kmod/Makefile is in kpatch-dkms 0.3.2-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | include ../Makefile.inc
all: clean
ifeq ($(BUILDMOD),yes)
$(MAKE) -C core
endif
install:
ifeq ($(BUILDMOD),yes)
$(INSTALL) -d $(MODULESDIR)/$(shell uname -r)
$(INSTALL) -m 644 core/kpatch.ko $(MODULESDIR)/$(shell uname -r)
$(INSTALL) -m 644 core/Module.symvers $(MODULESDIR)/$(shell uname -r)
endif
$(INSTALL) -d $(DATADIR)/patch
$(INSTALL) -m 644 patch/* $(DATADIR)/patch
uninstall:
ifeq ($(BUILDMOD),yes)
$(RM) -R $(MODULESDIR)
endif
$(RM) -R $(DATADIR)
clean:
ifeq ($(BUILDMOD),yes)
$(MAKE) -C core clean
endif
|