mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-22 12:28:40 +08:00
Sync with justfile
This commit is contained in:
parent
d49377f166
commit
c3d6b1c5f3
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,6 +17,7 @@
|
||||
|
||||
# target exe name
|
||||
chsrc
|
||||
chsrc-debug
|
||||
|
||||
# test files
|
||||
xy
|
||||
|
12
Makefile
12
Makefile
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user