restructure and include Makefile
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bin/
|
||||||
11
Makefile
Normal file
11
Makefile
Normal 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
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main_test
|
package zfs_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|||||||
Reference in New Issue
Block a user