mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-11 04:05:38 +03:00
Update makefile and vendor script
This commit is contained in:
parent
42af0816d5
commit
96322a6df9
11
Makefile
11
Makefile
@ -10,32 +10,31 @@ ADDITIONAL_GO_LINKER_FLAGS := $(shell GOOS=$(shell go env GOHOSTOS) \
|
||||
go run tools/info-plist.go "$(VERSION)")
|
||||
GOBIN ?= $(shell go env GOPATH)/bin
|
||||
GOVARS := -X github.com/zyedidia/micro/internal/util.Version=$(VERSION) -X github.com/zyedidia/micro/internal/util.CommitHash=$(HASH) -X 'github.com/zyedidia/micro/internal/util.CompileDate=$(DATE)' -X github.com/zyedidia/micro/internal/util.Debug=OFF
|
||||
GOTAGS := osusergo
|
||||
|
||||
# Builds micro after checking dependencies but without updating the runtime
|
||||
build:
|
||||
go build -tags $(GOTAGS) -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
go build -mod=readonly -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
|
||||
build-dbg:
|
||||
go build -ldflags "-s -w $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
go build -mod=readonly -ldflags "-s -w $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
|
||||
# Builds micro after building the runtime and checking dependencies
|
||||
build-all: runtime build
|
||||
|
||||
# Builds micro without checking for dependencies
|
||||
build-quick:
|
||||
go build -tags $(GOTAGS) -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
go build -mod=readonly -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
|
||||
# Same as 'build' but installs to $GOBIN afterward
|
||||
install:
|
||||
go install -tags $(GOTAGS) -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
go install -mod=readonly -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
|
||||
# Same as 'build-all' but installs to $GOBIN afterward
|
||||
install-all: runtime install
|
||||
|
||||
# Same as 'build-quick' but installs to $GOBIN afterward
|
||||
install-quick:
|
||||
go install -tags $(GOTAGS) -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
go install -mod=readonly -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||
|
||||
# Builds the runtime
|
||||
runtime:
|
||||
|
@ -1,12 +1,8 @@
|
||||
# ./vendor-src.sh micro-$1-src
|
||||
cd ..
|
||||
|
||||
mkdir -p binaries
|
||||
mkdir -p micro-$1
|
||||
|
||||
mv micro-$1-src.tar.gz binaries
|
||||
mv micro-$1-src.zip binaries
|
||||
|
||||
cp LICENSE micro-$1
|
||||
cp README.md micro-$1
|
||||
cp LICENSE-THIRD-PARTY micro-$1
|
||||
|
@ -1,12 +1,8 @@
|
||||
# ./vendor-src.sh micro-$1-src
|
||||
cd ..
|
||||
|
||||
mkdir -p binaries
|
||||
mkdir -p micro-$1
|
||||
|
||||
mv micro-$1-src.tar.gz binaries
|
||||
mv micro-$1-src.zip binaries
|
||||
|
||||
cp LICENSE micro-$1
|
||||
cp README.md micro-$1
|
||||
cp LICENSE-THIRD-PARTY micro-$1
|
||||
|
Loading…
Reference in New Issue
Block a user