You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.1 KiB
23 lines
1.1 KiB
Index: src/github.com/zyedidia/micro/Makefile |
|
--- src/github.com/zyedidia/micro/Makefile.orig 2017-09-02 17:55:45.000000000 +0200 |
|
+++ src/github.com/zyedidia/micro/Makefile 2017-09-02 18:00:30.205578000 +0200 |
|
@@ -2,7 +2,7 @@ |
|
|
|
VERSION := $(shell GOOS=$(shell go env GOHOSTOS) GOARCH=$(shell go env GOHOSTARCH) \ |
|
go run tools/build-version.go) |
|
-HASH := $(shell git rev-parse --short HEAD) |
|
+HASH := 0000 |
|
DATE := $(shell GOOS=$(shell go env GOHOSTOS) GOARCH=$(shell go env GOHOSTARCH) \ |
|
go run tools/build-date.go) |
|
ADDITIONAL_GO_LINKER_FLAGS := $(shell GOOS=$(shell go env GOHOSTOS) \ |
|
@@ -11,8 +11,8 @@ |
|
GOBIN ?= $(shell go env GOPATH)/bin |
|
|
|
# Builds micro after checking dependencies but without updating the runtime |
|
-build: update |
|
- go build -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro |
|
+build: |
|
+ go build -x -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro |
|
|
|
# Builds micro after building the runtime and checking dependencies |
|
build-all: runtime build
|
|
|