diff options
author | EuAndreh <eu@euandre.org> | 2024-08-08 17:25:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-08 17:31:12 -0300 |
commit | 65932f6d2398260554fb167a887fa4e829149983 (patch) | |
tree | e25b02305935f1688ac7616b74dfb288c0f65a83 | |
parent | Makefile: Reorder deps rules (diff) | |
download | gobang-65932f6d2398260554fb167a887fa4e829149983.tar.gz gobang-65932f6d2398260554fb167a887fa4e829149983.tar.xz |
mv tests/gobang_main.go tests/main.go
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | tests/main.go (renamed from tests/gobang_main.go) | 0 |
2 files changed, 9 insertions, 9 deletions
@@ -33,7 +33,7 @@ include deps.mk objects = \ src/$(NAME).a \ tests/$(NAME).a \ - tests/$(NAME)_main.a \ + tests/main.a \ sources = \ src/$(NAME).go \ @@ -41,7 +41,7 @@ sources = \ derived-assets = \ $(objects) \ - tests/$(NAME)_main.bin \ + tests/main.bin \ side-assets = \ @@ -60,21 +60,21 @@ src/$(NAME).a: src/$(NAME).go tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(NAME).go -tests/$(NAME)_main.a: tests/$(NAME)_main.go tests/$(NAME).a +tests/main.a: tests/main.go tests/$(NAME).a go tool compile $(GOCFLAGS) -o $@ -I $(@D) $*.go -tests/$(NAME)_main.bin: tests/$(NAME)_main.a +tests/main.bin: tests/main.a go tool link $(GOLDFLAGS) -o $@ -L $(@D) $*.a tests.bin-check = \ - tests/$(NAME)_main.bin/1 \ - tests/$(NAME)_main.bin/2 \ - tests/$(NAME)_main.bin/3 \ - tests/$(NAME)_main.bin/4 \ + tests/main.bin/1 \ + tests/main.bin/2 \ + tests/main.bin/3 \ + tests/main.bin/4 \ -$(tests.bin-check): tests/$(NAME)_main.bin +$(tests.bin-check): tests/main.bin $(tests.bin-check): $(EXEC)$(@D) $(@F) diff --git a/tests/gobang_main.go b/tests/main.go index 2dcbdf0..2dcbdf0 100644 --- a/tests/gobang_main.go +++ b/tests/main.go |