mirror of https://github.com/dynup/kpatch
Makefile: add dependencies target
Installing the dependencies should be a one-step operation for the user. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
parent
b6abf449d6
commit
b6b650a006
6
Makefile
6
Makefile
|
@ -10,7 +10,7 @@ UNITTEST_DIR = test/unit
|
|||
INTEGRATION_DIR = test/integration
|
||||
CLEAN_DIRS += clean-$(UNITTEST_DIR)
|
||||
|
||||
.PHONY: all install uninstall clean check unit
|
||||
.PHONY: all dependencies install uninstall clean check unit
|
||||
.PHONY: $(SUBDIRS) $(BUILD_DIRS) $(INSTALL_DIRS) $(CLEAN_DIRS)
|
||||
.PHONY: integration integration-slow integration-quick
|
||||
.PHONY: vagrant-integration-slow vagrant-integration-quick vagrant-integration
|
||||
|
@ -21,6 +21,10 @@ all: $(BUILD_DIRS)
|
|||
$(BUILD_DIRS):
|
||||
$(MAKE) -C $(@:build-%=%)
|
||||
|
||||
dependencies: SHELL:=/bin/bash
|
||||
dependencies:
|
||||
source test/integration/lib.sh && kpatch_dependencies
|
||||
|
||||
install: $(INSTALL_DIRS)
|
||||
$(INSTALL_DIRS):
|
||||
$(MAKE) -C $(@:install-%=%) install
|
||||
|
|
|
@ -32,9 +32,8 @@ architecture is supported.
|
|||
Install the dependencies for compiling kpatch and running kpatch-build:
|
||||
|
||||
```bash
|
||||
source test/integration/lib.sh
|
||||
# Will request root privileges
|
||||
kpatch_dependencies
|
||||
make dependencies
|
||||
```
|
||||
|
||||
### Oracle Linux 7
|
||||
|
@ -78,12 +77,12 @@ ccache --max-size=5G
|
|||
Install the dependencies for compiling kpatch and running kpatch-build
|
||||
|
||||
```bash
|
||||
source test/integration/lib.sh
|
||||
# required on ppc64le
|
||||
# e.g., on Ubuntu 18.04 for gcc-7.3
|
||||
apt-get install gcc-7-plugin-dev
|
||||
|
||||
# Will request root privileges
|
||||
kpatch_dependencies
|
||||
make dependencies
|
||||
```
|
||||
|
||||
### Debian 9 (Stretch)
|
||||
|
@ -200,9 +199,8 @@ to see its documents. This document describes how to run mainline kpatch in open
|
|||
Install the dependencies for compiling kpatch and running kpatch-build:
|
||||
|
||||
```bash
|
||||
source test/integration/lib.sh
|
||||
# Will request root privileges
|
||||
kpatch_dependencies
|
||||
make dependencies
|
||||
```
|
||||
|
||||
Before running kpatch-build, two more things need to be checked:
|
||||
|
|
Loading…
Reference in New Issue