2014-02-13 16:04:35 +00:00
|
|
|
include Makefile.inc
|
|
|
|
|
2014-04-01 20:14:40 +00:00
|
|
|
SUBDIRS = kpatch-build kpatch kmod man contrib
|
2014-02-13 16:04:35 +00:00
|
|
|
BUILD_DIRS = $(SUBDIRS:%=build-%)
|
|
|
|
INSTALL_DIRS = $(SUBDIRS:%=install-%)
|
2014-03-20 14:29:06 +00:00
|
|
|
UNINSTALL_DIRS = $(SUBDIRS:%=uninstall-%)
|
2014-02-13 16:04:35 +00:00
|
|
|
CLEAN_DIRS = $(SUBDIRS:%=clean-%)
|
|
|
|
|
2017-10-13 06:52:16 +00:00
|
|
|
.PHONY: all install uninstall clean check
|
2014-02-13 16:04:35 +00:00
|
|
|
.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
|
|
|
|
|
2014-03-20 14:29:06 +00:00
|
|
|
uninstall: $(UNINSTALL_DIRS)
|
|
|
|
$(UNINSTALL_DIRS):
|
|
|
|
$(MAKE) -C $(@:uninstall-%=%) uninstall
|
|
|
|
|
2014-02-13 16:04:35 +00:00
|
|
|
clean: $(CLEAN_DIRS)
|
|
|
|
$(CLEAN_DIRS):
|
|
|
|
$(MAKE) -C $(@:clean-%=%) clean
|
2017-10-13 06:52:16 +00:00
|
|
|
|
|
|
|
check:
|
|
|
|
shellcheck kpatch/kpatch kpatch-build/kpatch-build kpatch-build/kpatch-gcc
|