|
2 | 2 | # -------------------------------------------------------------- |
3 | 3 | # SPDX-License-Identifier: GPL-3.0-or-later |
4 | 4 | # -------------------------------------------------------------- |
5 | | -# Build File : Makefile |
| 5 | +# Build File : Makefile |
6 | 6 | # File Authors : Aoran Zeng <[email protected]> |
7 | 7 | # Contributors : Yangmoooo <[email protected]> |
8 | 8 | # | sanchuanhehe <[email protected]> |
9 | 9 | # | |
10 | 10 | # Created On : <2023-08-28> |
11 | | -# Last Modified : <2025-06-19> |
| 11 | +# Last Modified : <2025-06-20> |
12 | 12 | # -------------------------------------------------------------- |
13 | 13 |
|
14 | 14 | On-Linux = 0 |
@@ -63,24 +63,25 @@ ifeq ($(MAKECMDGOALS), CI) |
63 | 63 | endif |
64 | 64 | #======================= |
65 | 65 |
|
| 66 | +all: build |
66 | 67 |
|
67 | | -all: |
| 68 | +build: |
68 | 69 | ifeq ($(STATIC), 1) |
69 | 70 | CFLAGS += -static |
70 | 71 | endif |
71 | 72 |
|
72 | | -all: |
| 73 | +build: |
73 | 74 | @echo "Starting: Compile chsrc executable" |
74 | 75 | @$(CC) src/chsrc-main.c $(CFLAGS) $(_C_Warning_Flags) -o $(Target-Name) |
75 | 76 | @echo Finished: Compile chsrc executable using \'$(CC)\' $(CFLAGS) |
76 | 77 |
|
77 | | -CI: all |
| 78 | +CI: build |
78 | 79 | @mv $(Target-Name) $(CI_ARTIFACT_NAME) |
79 | 80 |
|
80 | 81 |
|
81 | 82 | debug: CFLAGS += -g |
82 | 83 | debug: Target-Name = $(Debuggable-Target-Name) |
83 | | -debug: all |
| 84 | +debug: build |
84 | 85 | @$(DEBUGGER) $(Debuggable-Target-Name) |
85 | 86 |
|
86 | 87 | test: test-make-env test-xy test-fw |
@@ -140,4 +141,4 @@ install: $(Target-Name) |
140 | 141 | install -D -m 755 $(Target-Name) $(DESTDIR)/usr/bin/$(Target-Name) |
141 | 142 | install -D -m 644 doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/chsrc.1 |
142 | 143 |
|
143 | | -.PHONY: all CI debug check test test-make-env test-xy test-fw fastcheck test-cli clean install build-deb clean-deb |
| 144 | +.PHONY: all build CI debug check test test-make-env test-xy test-fw fastcheck test-cli clean install build-deb clean-deb |
0 commit comments