mirror of
https://github.com/dynup/kpatch
synced 2024-12-26 07:12:03 +00:00
62de820aab
- setup the makefiles to support "make" and "make install", which builds the kpatch-build tools and installs everything in /usr/local. - update kpatch-build to support new paths - add "kpatch build" wrapper around kpatch-build
22 lines
448 B
Makefile
22 lines
448 B
Makefile
include Makefile.inc
|
|
|
|
SUBDIRS = kpatch-build kpatch kmod
|
|
BUILD_DIRS = $(SUBDIRS:%=build-%)
|
|
INSTALL_DIRS = $(SUBDIRS:%=install-%)
|
|
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
|
|
|
|
clean: $(CLEAN_DIRS)
|
|
$(CLEAN_DIRS):
|
|
$(MAKE) -C $(@:clean-%=%) clean
|