mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 05:32:13 +00:00
eb1bd13278
When doing "kpatch install", copy the patch modules to the initrd and install a dracut hook which calls "kpatch apply --all".
27 lines
592 B
Makefile
27 lines
592 B
Makefile
include Makefile.inc
|
|
|
|
SUBDIRS = kpatch-build kpatch kmod man contrib
|
|
BUILD_DIRS = $(SUBDIRS:%=build-%)
|
|
INSTALL_DIRS = $(SUBDIRS:%=install-%)
|
|
UNINSTALL_DIRS = $(SUBDIRS:%=uninstall-%)
|
|
CLEAN_DIRS = $(SUBDIRS:%=clean-%)
|
|
|
|
.PHONY: $(SUBDIRS) $(BUILD_DIRS) $(INSTALL_DIRS) $(CLEAN_DIRS)
|
|
|
|
|
|
all: $(BUILD_DIRS)
|
|
$(BUILD_DIRS):
|
|
$(MAKE) -C $(@:build-%=%)
|
|
|
|
install: $(INSTALL_DIRS)
|
|
$(INSTALL_DIRS):
|
|
$(MAKE) -C $(@:install-%=%) install
|
|
|
|
uninstall: $(UNINSTALL_DIRS)
|
|
$(UNINSTALL_DIRS):
|
|
$(MAKE) -C $(@:uninstall-%=%) uninstall
|
|
|
|
clean: $(CLEAN_DIRS)
|
|
$(CLEAN_DIRS):
|
|
$(MAKE) -C $(@:clean-%=%) clean
|