summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-08 17:25:11 -0300
committerEuAndreh <eu@euandre.org>2024-08-08 17:31:12 -0300
commit65932f6d2398260554fb167a887fa4e829149983 (patch)
treee25b02305935f1688ac7616b74dfb288c0f65a83
parentMakefile: Reorder deps rules (diff)
downloadgobang-65932f6d2398260554fb167a887fa4e829149983.tar.gz
gobang-65932f6d2398260554fb167a887fa4e829149983.tar.xz
mv tests/gobang_main.go tests/main.go
-rw-r--r--Makefile18
-rw-r--r--tests/main.go (renamed from tests/gobang_main.go)0
2 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index d4906c3..b2773fa 100644
--- a/Makefile
+++ b/Makefile
@@ -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