NAME = rexclient REX_VERSION ?= $(shell bash ../generate_version.sh) build: commit.txt go build -tags no_emoji -trimpath -ldflags="-s -w -X main.rex_version=$(REX_VERSION)" -buildvcs=false -o $(NAME) run: commit.txt go run . debug: commit.txt go run -tags debug,hints . commit.txt: go generate clean: rm -f $(NAME)