From cc98b12e78df32f1559daa3a96e089c50380b4fe Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 16 May 2024 11:11:22 -0300 Subject: Rename source files to "lib.go" and "main.go" --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ee16311..4a48002 100644 --- a/Makefile +++ b/Makefile @@ -38,15 +38,15 @@ all: include deps.mk sources = \ - src/$(NAME).go \ - src/cmd/$(NAME).go \ + src/lib.go \ + src/cmd/main.go \ $(sources.static) \ $(sources.sql) \ derived-assets = \ $(NAME).bin \ - tests/$(NAME)_test.bin \ + tests/lib_test.bin \ side-assets = \ papo.public.socket \ @@ -61,16 +61,16 @@ side-assets = \ all: $(derived-assets) -$(NAME).bin: src/$(NAME).go src/cmd/$(NAME).go Makefile - go build -o $@ -v src/cmd/$(NAME).go +$(NAME).bin: src/lib.go src/cmd/main.go Makefile + go build -o $@ -v src/cmd/main.go -tests/$(NAME)_test.bin: src/$(NAME).go tests/$(NAME)_test.go Makefile - go test -c -o $@ -v tests/$(NAME)_test.go +tests/lib_test.bin: src/lib.go tests/lib_test.go Makefile + go test -c -o $@ -v $*.go -check-unit: tests/$(NAME)_test.bin - ./tests/$(NAME)_test.bin +check-unit: tests/lib_test.bin + ./tests/lib_test.bin integration-tests = \ -- cgit v1.2.3