Fix Windows path issue of just

This commit is contained in:
Aoran Zeng 2025-06-19 19:11:07 +08:00
parent c3d6b1c5f3
commit 74be327274
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -7,7 +7,7 @@
# Contributors : Nul None <nul@none.org> # Contributors : Nul None <nul@none.org>
# | # |
# Created On : <2025-06-18> # Created On : <2025-06-18>
# Last Modified : <2025-06-18> # Last Modified : <2025-06-19>
# #
# just (build) # just (build)
# just debug # 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 b := build
alias d := debug alias d := debug
alias t := test alias t := test
@ -84,11 +87,11 @@ test: test-xy test-fw
test-xy: test-xy:
@{{CC}} test/xy.c {{CFLAGS}} -o xy @{{CC}} test/xy.c {{CFLAGS}} -o xy
@./xy @{{BIN_xy}}
test-fw: test-fw:
@{{CC}} test/fw.c {{CFLAGS}} -o fw @{{CC}} test/fw.c {{CFLAGS}} -o fw
@./fw @{{BIN_fw}}
check: test check: test