-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
10,008 additions
and
3,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*.exe | ||
pkg/* | ||
_output/* | ||
bin/* | ||
.idea/* | ||
data/* | ||
data/* | ||
.DS_Store/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
|
||
COMPILER=go | ||
GOBIN=compress | ||
|
||
TARGET=edm | ||
OUT_DIR=bin | ||
MAIN_DIR=cmd | ||
|
||
# These are the values we want to pass for VERSION and BUILD | ||
VERSION=1.0.0 | ||
BUILD=`date +%FT%T%z` | ||
# Setup the -Idflags options for go build here,interpolate the variable values | ||
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" | ||
LDFLAGS=-ldflags "-X ./pkg/version/version.VERSION=${VERSION}" | ||
|
||
build: | ||
$(COMPILER) build ${LDFLAGS} | ||
$(COMPILER) build -o ${OUT_DIR}/${TARGET} ${LDFLAGS} ${MAIN_DIR}/${TARGET}/main.go | ||
|
||
clean: | ||
$(COMPILER) clean | ||
rm -rf $(OUT_DIR)/* | ||
|
||
.PHONY: build clean | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.