From f2e5e1ff7f815c3ee64a0da316a754ed43f241d0 Mon Sep 17 00:00:00 2001 From: radtriste Date: Mon, 28 Aug 2023 15:58:35 +0200 Subject: [PATCH] set PHONY targets --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 46dec82056..e6d7f3ba2a 100644 --- a/Makefile +++ b/Makefile @@ -56,24 +56,29 @@ mvn: $(mvn_cmd) ${cmd} ## Update the quarkus version. Needs the `quarkus_version` argument set +.PHONY: update-quarkus update-quarkus: export BUILD_MVN_OPTS=${mvn_opts} && .ci/environments/common/update_quarkus.sh ${quarkus_version} $(MAKE) show-diff ## Prepare the repository for a specific environment. Needs the `environment` argument set +.PHONY: prepare-env prepare-env: export BUILD_MVN_OPTS=${mvn_opts} && .ci/environments/update.sh ${environment} ## Show project dependencies +.PHONY: tree tree: $(mvn_cmd) dependency:tree ## Show Git diff +.PHONY: show-diff show-diff: git status git diff ## This help screen +.PHONY: help help: @printf "Available targets:\n\n" @awk '/^[a-zA-Z\-_0-9%:\\]+/ { \ @@ -91,5 +96,6 @@ help: @printf "All Maven commands can include some maven options via the \`mvn_opts\` argument !" @printf "\n" +.PHONY: build-chain build-chain: which build-chain || npm i @kie/build-chain-action -g || printf "\nERROR: Cannot install build-chain. Please run \`npm i @kie/build-chain-action -g\` as sudo user\n"