Changeset 12 in code for trunk/Makefile


Ignore:
Timestamp:
Mar 25, 2023, 4:43:22 PM (2 years ago)
Author:
koizumi.aoi
Message:

feat: stop hardcoding default instance and engine, also other minor changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r11 r12  
    1 PREFIX=/usr/local
     1PREFIX ?= /usr/local
     2
     3GOARCH ?= amd64
     4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
     5GOOS ?= linux
     6
     7BRANCH = `git rev-parse --abbrev-ref HEAD`
     8BUILD = `git show -s --pretty=format:%cI`
     9COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
     10VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
    211
    312build:
    4         go build
     13        go build $(GOFLAGS) ./cmd/stcli
    514        strip stcli
    615clean:
Note: See TracChangeset for help on using the changeset viewer.