mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Make 'make' do the same as 'make build' (#2217)
Fix a slight regression after ec3292: when 'make' is run without specifying a target, it counter-intuitively runs fetch-tags instead of building micro.
This commit is contained in:
12
Makefile
12
Makefile
@@ -13,12 +13,6 @@ GOVARS = -X github.com/zyedidia/micro/v2/internal/util.Version=$(VERSION) -X git
|
|||||||
DEBUGVAR = -X github.com/zyedidia/micro/v2/internal/util.Debug=ON
|
DEBUGVAR = -X github.com/zyedidia/micro/v2/internal/util.Debug=ON
|
||||||
VSCODE_TESTS_BASE_URL = 'https://raw.githubusercontent.com/microsoft/vscode/e6a45f4242ebddb7aa9a229f85555e8a3bd987e2/src/vs/editor/test/common/model/'
|
VSCODE_TESTS_BASE_URL = 'https://raw.githubusercontent.com/microsoft/vscode/e6a45f4242ebddb7aa9a229f85555e8a3bd987e2/src/vs/editor/test/common/model/'
|
||||||
|
|
||||||
fetch-tags:
|
|
||||||
git fetch --tags
|
|
||||||
|
|
||||||
generate:
|
|
||||||
go generate ./runtime
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
go build -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
|
||||||
|
|
||||||
@@ -35,6 +29,12 @@ install:
|
|||||||
|
|
||||||
install-all: generate install
|
install-all: generate install
|
||||||
|
|
||||||
|
fetch-tags:
|
||||||
|
git fetch --tags
|
||||||
|
|
||||||
|
generate:
|
||||||
|
go generate ./runtime
|
||||||
|
|
||||||
testgen:
|
testgen:
|
||||||
mkdir -p tools/vscode-tests
|
mkdir -p tools/vscode-tests
|
||||||
cd tools/vscode-tests && \
|
cd tools/vscode-tests && \
|
||||||
|
|||||||
Reference in New Issue
Block a user