mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Not use build dir
This commit is contained in:
parent
e564239fed
commit
0bd2cf1205
20
Makefile
20
Makefile
@ -3,7 +3,7 @@
|
|||||||
# License : GPLv3
|
# License : GPLv3
|
||||||
# Authors : Aoran Zeng <ccmywish@qq.com>
|
# Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# Created on : <2023-08-28>
|
# Created on : <2023-08-28>
|
||||||
# Last modified : <2024-05-24>
|
# Last modified : <2024-05-25>
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = -Iinclude # -Wall
|
CFLAGS = -Iinclude # -Wall
|
||||||
@ -19,31 +19,29 @@ ifeq ($(shell uname), Linux)
|
|||||||
CFLAGS += -static
|
CFLAGS += -static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Target = build/chsrc
|
Target = chsrc
|
||||||
|
|
||||||
CI_Build_Name = chsrc
|
CI_Build_Name = chsrc
|
||||||
#=======================
|
#=======================
|
||||||
|
|
||||||
all: build_dir
|
all:
|
||||||
@$(CC) src/chsrc.c $(CFLAGS) -o $(Target)
|
@$(CC) src/chsrc.c $(CFLAGS) -o $(Target)
|
||||||
@echo; echo Compile done using \'$(CC)\' $(CFLAGS)
|
@echo; echo Compile done using \'$(CC)\' $(CFLAGS)
|
||||||
|
|
||||||
CI: all
|
CI: all
|
||||||
@mv $(Target) $(CI_Build_Name)
|
@mv $(Target) $(CI_Build_Name)
|
||||||
|
|
||||||
build_dir:
|
|
||||||
@mkdir -p build
|
|
||||||
|
|
||||||
test: $(Target)
|
test: $(Target)
|
||||||
./$(Target) list mirror
|
./$(Target) list mirror
|
||||||
./$(Target) list target
|
./$(Target) list target
|
||||||
./$(Target) get ruby
|
./$(Target) get ruby
|
||||||
./$(Target) get python
|
./$(Target) get python
|
||||||
|
|
||||||
test_xy: build_dir
|
test_xy:
|
||||||
@$(CC) test/xy.c -o build/xy
|
@$(CC) test/xy.c -o xy
|
||||||
@./build/xy
|
@./xy
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@rm *.exe 2>/dev/null
|
-@rm *.exe 2>/dev/null
|
||||||
-@rm ./build/* 2>/dev/null
|
-@rm xy 2>/dev/null
|
||||||
|
-@rm chsrc 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user