diff --git a/Makefile b/Makefile index 3b95d2e..9458e4d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,14 @@ NAME := lsec2 -SRCS := $(shell find . -type f -name '*.go' | \grep -v 'vendor') -PACKAGES := $(shell ./scripts/_packages.sh) PROF_DIR := ./.profile -GOVERSION := $(shell go version | awk '{print $$3;}') +AWS_SDK_GO_PKG := github.com/aws/aws-sdk-go + +# Note: NOT use lazy initializer because make is unstable. +#SRCS = $(eval SRCS := $(shell find . -type f -name '*.go' | \grep -v 'vendor'))$(SRCS) +#PACKAGES = $(eval PACKAGES := $(shell ./scripts/_packages.sh))$(PACKAGES) +#GOVERSION = $(eval GOVERSION := $(shell go version | awk '{print $$3;}'))$(GOVERSION) +SRCS = $(shell find . -type f -name '*.go' | \grep -v 'vendor') +PACKAGES = $(shell ./scripts/_packages.sh) +GOVERSION = $(shell go version | awk '{print $$3;}') .DEFAULT_GOAL := bin/$(NAME) @@ -16,6 +22,12 @@ mod-dl: mod-tidy: @GO111MODULE=on go mod tidy +list-versions-aws-sdk-go: + @go list -u -m -versions $(AWS_SDK_GO_PKG) | tr ' ' '\n' + +update-aws-sdk-go: + @read -p 'Input Module Query(e.g. "