diff options
| author | Jeff Carr <[email protected]> | 2024-11-20 12:11:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-20 12:11:13 -0600 |
| commit | e14bc69169643c7f3eb3e31447657a877716eda4 (patch) | |
| tree | 05ddc9c6601ca67422608ea4bfd76bb021ca1496 /forgeConfig/Makefile | |
| parent | e10696e119e4c9a8d1cba83913fbd213b9e8b8d9 (diff) | |
forgeConfig updates
Diffstat (limited to 'forgeConfig/Makefile')
| -rw-r--r-- | forgeConfig/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/forgeConfig/Makefile b/forgeConfig/Makefile index 9c34ac1..8c6325d 100644 --- a/forgeConfig/Makefile +++ b/forgeConfig/Makefile @@ -1,8 +1,18 @@ +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) + build: - GO111MODULE=off go build + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" ./forgeConfig FORGE_HOME=/tmp/forge ./forgeConfig +list: + ./forgeConfig --list + +add: + ./forgeConfig --add --name 'foo' --gopath 'go.wit.com/apps/foo' + goimports: goimports -w *.go |
