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 }}
GO = go
SRC_DIR := src
CLI_DIR := cmd/cli
BIN_DIR := bin
EXE := $(BIN_DIR)/$(program)
@ -16,7 +16,7 @@ vet: fmt
$(GO) vet ./...
build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) ./$(SRC_DIR)
$(GO) build -o $(EXE) ./$(CLI_DIR)
test:
$(GO) test ./...

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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