1234567891011121314151617 |
- BINARY=auth-server
- MODULE=auth-server
- DESC=Authentication Server repo
- VERSION=`git describe --tags --long`
- BUILD=`date +%F\ %T`
- LDFLAGS=-ldflags "-X 'auth-server/common.Module=${MODULE}' -X 'auth-server/common.Desc=${DESC}' -X 'auth-server/common.Version=${VERSION}' -X 'auth-server/common.Build=${BUILD}'"
- build:
- go build ${LDFLAGS} -o ${BINARY}
- install:
- go install ${LDFLAGS}
- clean:
- if [ -f ${BINARY} ] ; then rm ${BINARY}; fi
|