mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-23 19:45:14 +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
|
# target exe name
|
||||||
chsrc
|
chsrc
|
||||||
|
chsrc-debug
|
||||||
|
|
||||||
# test files
|
# test files
|
||||||
xy
|
xy
|
||||||
|
12
Makefile
12
Makefile
@ -8,7 +8,7 @@
|
|||||||
# | sanchuanhehe <wyihe5520@gmail.com>
|
# | sanchuanhehe <wyihe5520@gmail.com>
|
||||||
# |
|
# |
|
||||||
# Created On : <2023-08-28>
|
# Created On : <2023-08-28>
|
||||||
# Last Modified : <2025-06-16>
|
# Last Modified : <2025-06-19>
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
||||||
On-Linux = 0
|
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
|
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
|
||||||
_C_Warning_Flags := $(WARN)
|
_C_Warning_Flags := $(WARN)
|
||||||
|
|
||||||
|
Target-Name = chsrc
|
||||||
|
|
||||||
|
Debuggable-Target-Name = chsrc-debug
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
|
Target-Name = $(Debuggable-Target-Name)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEBUGGER = gdb
|
DEBUGGER = gdb
|
||||||
@ -48,8 +53,6 @@ DEBUGGER = gdb
|
|||||||
STATIC = 0
|
STATIC = 0
|
||||||
#=======================
|
#=======================
|
||||||
|
|
||||||
Target-Name = chsrc
|
|
||||||
|
|
||||||
# 由 GitHub Actions 在调用时修改
|
# 由 GitHub Actions 在调用时修改
|
||||||
CI_ARTIFACT_NAME = chsrc
|
CI_ARTIFACT_NAME = chsrc
|
||||||
|
|
||||||
@ -76,8 +79,9 @@ CI: all
|
|||||||
|
|
||||||
|
|
||||||
debug: CFLAGS += -g
|
debug: CFLAGS += -g
|
||||||
|
debug: Target-Name = $(Debuggable-Target-Name)
|
||||||
debug: all
|
debug: all
|
||||||
@$(DEBUGGER) ./chsrc
|
@$(DEBUGGER) $(Debuggable-Target-Name)
|
||||||
|
|
||||||
test: test-make-env test-xy test-fw
|
test: test-make-env test-xy test-fw
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user