Sync with justfile

This commit is contained in:
Aoran Zeng 2025-06-19 18:43:37 +08:00
parent d49377f166
commit c3d6b1c5f3
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 9 additions and 4 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
# target exe name
chsrc
chsrc-debug
# test files
xy

View File

@ -8,7 +8,7 @@
# | sanchuanhehe <wyihe5520@gmail.com>
# |
# Created On : <2023-08-28>
# Last Modified : <2025-06-16>
# Last Modified : <2025-06-19>
# --------------------------------------------------------------
On-Linux = 0
@ -39,8 +39,13 @@ override WARN += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-mi
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
_C_Warning_Flags := $(WARN)
Target-Name = chsrc
Debuggable-Target-Name = chsrc-debug
ifdef DEBUG
CFLAGS += -g
Target-Name = $(Debuggable-Target-Name)
endif
DEBUGGER = gdb
@ -48,8 +53,6 @@ DEBUGGER = gdb
STATIC = 0
#=======================
Target-Name = chsrc
# 由 GitHub Actions 在调用时修改
CI_ARTIFACT_NAME = chsrc
@ -76,8 +79,9 @@ CI: all
debug: CFLAGS += -g
debug: Target-Name = $(Debuggable-Target-Name)
debug: all
@$(DEBUGGER) ./chsrc
@$(DEBUGGER) $(Debuggable-Target-Name)
test: test-make-env test-xy test-fw