fix build src

This commit is contained in:
onyx-and-iris 2024-12-28 01:50:52 +00:00
parent d689cd0a9a
commit 156c1c13e0
26 changed files with 52 additions and 52 deletions

View File

@ -1,7 +1,7 @@
program = {{ .Project }} program = {{ .Project }}
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
test: test:
$(GO) test ./... $(GO) test ./...

View File

@ -1,7 +1,7 @@
program = day-01 program = day-01
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./cmd/cli/ $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-02 program = day-02
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-03 program = day-03
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-04 program = day-04
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-05 program = day-05
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-06 program = day-06
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-07 program = day-07
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-08 program = day-08
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-09 program = day-09
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-10 program = day-10
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-11 program = day-11
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
test: test:
$(GO) test -v ./... $(GO) test -v ./...

View File

@ -1,7 +1,7 @@
program = day-12 program = day-12
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-13 program = day-13
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-14 program = day-14
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-15 program = day-15
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-16 program = day-16
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-17 program = day-17
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-18 program = day-18
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-19 program = day-19
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-20 program = day-20
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-21 program = day-21
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-22 program = day-22
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-23 program = day-23
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-24 program = day-24
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark

View File

@ -1,7 +1,7 @@
program = day-25 program = day-25
GO = go GO = go
SRC_DIR := src CLI_DIR := cmd/cli
BIN_DIR := bin BIN_DIR := bin
EXE := $(BIN_DIR)/$(program) EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./... $(GO) vet ./...
build: vet | $(BIN_DIR) build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR) $(GO) build -o $(EXE) ./$(CLI_DIR)
bench: bench:
$(GO) test ./internal/one/ -bench=. > internal/one/benchmark $(GO) test ./internal/one/ -bench=. > internal/one/benchmark