mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 12:56:46 +00:00
Switch to go modules
This commit is contained in:
8
Makefile
8
Makefile
@@ -7,7 +7,7 @@ VERSION ?= $(shell cat VERSION)
|
||||
SOURCES = $(shell find . -name '*.go' -o -name 'Makefile' -o -name 'VERSION')
|
||||
|
||||
all: bootstrap generate build
|
||||
bootstrap: dev-deps dep-ensure
|
||||
bootstrap: dev-deps
|
||||
|
||||
$(BINARY): $(SOURCES)
|
||||
CGO_ENABLED=0 go build -a -o ${BINARY} -ldflags \ "\
|
||||
@@ -30,16 +30,12 @@ test:
|
||||
go test ./...
|
||||
|
||||
.PHONY: generate
|
||||
generate: dev-deps
|
||||
generate:
|
||||
go generate ./...
|
||||
|
||||
%_easyjson.go: %.go
|
||||
easyjson -all $^
|
||||
|
||||
.PHONY: dep-ensure
|
||||
dep-ensure:
|
||||
dep ensure
|
||||
|
||||
.PHONY: dev-deps
|
||||
dev-deps:
|
||||
@$(foreach DEP,$(DEV_DEPS),go get $(DEP);)
|
||||
|
||||
Reference in New Issue
Block a user