restructure and include Makefile

This commit is contained in:
Sam Hoffman
2026-01-30 17:10:13 -05:00
parent 1bab8ab876
commit 3e996996ea
6 changed files with 13 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bin/

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
BINARY_NAME=thanks
VERSION=$(shell git describe --tags --always)
BUILD_TIME=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}"
.PHONY: all
all: build-linux
build-linux:
GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o bin/thanks ./cmd/thanks

View File

@@ -1,4 +1,4 @@
package main_test package zfs_test
import ( import (
"fmt" "fmt"