From 5499acff548cd63735752795c029350ba410b70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Tue, 30 Apr 2024 13:43:50 -0700 Subject: [PATCH] chore(Makefile): change Jython detection strategy --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3214658..e843725 100644 --- a/Makefile +++ b/Makefile @@ -28,11 +28,10 @@ clean: ## Uninstall all Jython packages. ##@ Initialize check: ## Check if Jython is installed. - @echo "Cheking if Jython is installed…" - @if ! command -v jython &> /dev/null; then \ - echo "Jython is not installed. Please install Jython before proceeding."; \ - exit 1; \ - fi +ifeq (, $(shell which jython)) + $(error "No jython in $(PATH). Please install Jython before proceeding.") + endif + @echo "Jython was found in PATH." init: ## Run check and create required directories for other targets. @echo "Initializing…"