From bd4a715708e673ac37a8a70d46953bf49ddcd830 Mon Sep 17 00:00:00 2001 From: Jakob Jensen Date: Wed, 22 Oct 2025 23:01:09 +0200 Subject: [PATCH] feat: use native conditionals for make --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a5b06b2..16a540b 100644 --- a/Makefile +++ b/Makefile @@ -49,14 +49,16 @@ else endif smoke-test: - @if [ -f credentials.json ]; then \ - go run ./... translations list -c credentials.json; \ - fi +ifneq (,$(wildcard credentials.json)) + go run ./... translations list -c credentials.json +endif + @exit 0 verify-version: ifneq ($(TOOL_VERSION),$(MOD_VERSION)) @echo 'Mismatched go versions' @exit 1 endif + @exit 0 test: verify-version tidy unit-tests smoke-test