mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 10:26:40 +00:00
feat!: remove external dependencies
Remove the kingpin external dependency, and instead just use Go's stdlib flag package. BREAKING CHANGE: Long versions of command line flags are no longer supported.
This commit is contained in:
5
Makefile
5
Makefile
@@ -4,11 +4,10 @@ VERSION ?= $(shell cat VERSION)
|
||||
SOURCES = $(shell find . -name '*.go' -o -name 'Makefile')
|
||||
|
||||
$(BINARY): $(SOURCES)
|
||||
CGO_ENABLED=0 go build -a -o ${BINARY} -ldflags \ "\
|
||||
CGO_ENABLED=0 go build -o ${BINARY} -ldflags \ "\
|
||||
-s -w \
|
||||
-X main.version=${VERSION} \
|
||||
-X main.commit=$(shell git show --format="%h" --no-patch) \
|
||||
-X main.date=$(shell date +%Y-%m-%dT%T%z)"
|
||||
-X main.commit=$(shell git show --format="%h" --no-patch)"
|
||||
|
||||
.PHONY: build
|
||||
build: $(BINARY)
|
||||
|
||||
Reference in New Issue
Block a user