8
Makefile
8
Makefile
@@ -21,11 +21,7 @@ endif
|
|||||||
ifneq ($(DRONE_TAG),)
|
ifneq ($(DRONE_TAG),)
|
||||||
VERSION ?= $(DRONE_TAG)
|
VERSION ?= $(DRONE_TAG)
|
||||||
else
|
else
|
||||||
ifneq ($(DRONE_BRANCH),)
|
VERSION ?= $(shell git describe --tags --always || git rev-parse --short HEAD)
|
||||||
VERSION ?= $(DRONE_BRANCH)
|
|
||||||
else
|
|
||||||
VERSION ?= $(shell git describe --tags --always || git rev-parse --short HEAD)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
@@ -65,7 +61,7 @@ dep_install:
|
|||||||
dep_update:
|
dep_update:
|
||||||
glide up
|
glide up
|
||||||
|
|
||||||
install: $(wildcard *.go)
|
install: $(SOURCES)
|
||||||
go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
|
go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
|
||||||
|
|
||||||
build: $(EXECUTABLE)
|
build: $(EXECUTABLE)
|
||||||
|
|||||||
Reference in New Issue
Block a user