first commit

This commit is contained in:
2024-12-01 17:50:02 +00:00
commit 25b6db75c8
8 changed files with 272 additions and 0 deletions

25
day-01/makefile Normal file
View File

@@ -0,0 +1,25 @@
program = day-01
GO = go
SRC_DIR := src
BIN_DIR := bin
EXE := $(BIN_DIR)/$(program)
.DEFAULT_GOAL := build
.PHONY: fmt vet build clean
fmt:
$(GO) fmt ./...
vet: fmt
$(GO) vet ./...
build: vet | $(BIN_DIR)
$(GO) build -o $(EXE) .
$(BIN_DIR):
@mkdir -p $@
clean:
@rm -rv $(BIN_DIR)