From 74be3272748e5a21c5e42775c9045538f9b3dbc3 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 19 Jun 2025 19:11:07 +0800 Subject: [PATCH] Fix Windows path issue of `just` --- justfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index edba21c..31aed7f 100644 --- a/justfile +++ b/justfile @@ -7,7 +7,7 @@ # Contributors : Nul None # | # Created On : <2025-06-18> -# Last Modified : <2025-06-18> +# Last Modified : <2025-06-19> # # just (build) # just debug @@ -63,6 +63,9 @@ CFLAGS_only_promp_for_dev := CFLAGS_base + ' ' + CFLAGS_debug + CFLAGS_static + #======================= +BIN_xy := if os() == 'windows' {'xy.exe'} else {'./xy'} +BIN_fw := if os() == 'windows' {'fw.exe'} else {'./fw'} +#======================= alias b := build alias d := debug alias t := test @@ -84,11 +87,11 @@ test: test-xy test-fw test-xy: @{{CC}} test/xy.c {{CFLAGS}} -o xy - @./xy + @{{BIN_xy}} test-fw: @{{CC}} test/fw.c {{CFLAGS}} -o fw - @./fw + @{{BIN_fw}} check: test