From 02306e62ae6ade2b4e00f9e2e7b3cae3657f3e0d Mon Sep 17 00:00:00 2001 From: Joe Lawrence Date: Mon, 23 May 2022 08:47:18 -0400 Subject: [PATCH] Makefile: add make help We've got a lot of top level Makefile targets, help out the user. Signed-off-by: Joe Lawrence --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index 7c251c6..37ab1e8 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ CLEAN_DIRS += clean-$(UNITTEST_DIR) .PHONY: integration integration-slow integration-quick .PHONY: vagrant-integration-slow vagrant-integration-quick vagrant-integration .PHONY: vagrant-install +.PHONY: help all: $(BUILD_DIRS) @@ -71,3 +72,24 @@ check: test/integration/lib.sh test/integration/rebase-patches \ test/integration/test-vagrant \ test/integration/vm-integration-run + +help: + @echo "kpatch Makefile" + @echo + @echo "Targets:" + @echo " make dependencies install build dependencies [1]" + @echo " make all build entire project" + @echo " make install install programs to system [1]" + @echo " make uninstall remove programs from system [1]" + @echo " make clean clean build files" + @echo + @echo "Test targets:" + @echo " make check run static code analyzers" + @echo " make integration build and run integration tests [2]" + @echo " make integration-slow build and run integration tests [2]" + @echo " make integration-quick build and run integration tests [2]" + @echo " make unit run unit tests" + @echo + @echo "[1] requires admin privileges" + @echo "[2] installs test kpatch kernel modules, run at your own risk" + @echo