Rename DEBUG env var to MM_DEBUG (#109)
This commit is contained in:
parent
7cdbf90a73
commit
ff87cdfc8f
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -1,7 +1,7 @@
|
||||||
GO ?= $(shell command -v go 2> /dev/null)
|
GO ?= $(shell command -v go 2> /dev/null)
|
||||||
NPM ?= $(shell command -v npm 2> /dev/null)
|
NPM ?= $(shell command -v npm 2> /dev/null)
|
||||||
CURL ?= $(shell command -v curl 2> /dev/null)
|
CURL ?= $(shell command -v curl 2> /dev/null)
|
||||||
DEBUG ?=
|
MM_DEBUG ?=
|
||||||
MANIFEST_FILE ?= plugin.json
|
MANIFEST_FILE ?= plugin.json
|
||||||
GOPATH ?= $(shell go env GOPATH)
|
GOPATH ?= $(shell go env GOPATH)
|
||||||
GO_TEST_FLAGS ?= -race
|
GO_TEST_FLAGS ?= -race
|
||||||
|
@ -62,12 +62,12 @@ endif
|
||||||
server:
|
server:
|
||||||
ifneq ($(HAS_SERVER),)
|
ifneq ($(HAS_SERVER),)
|
||||||
mkdir -p server/dist;
|
mkdir -p server/dist;
|
||||||
ifeq ($(DEBUG),)
|
ifeq ($(MM_DEBUG),)
|
||||||
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-linux-amd64;
|
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-linux-amd64;
|
||||||
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-darwin-amd64;
|
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-darwin-amd64;
|
||||||
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-windows-amd64.exe;
|
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-windows-amd64.exe;
|
||||||
else
|
else
|
||||||
$(info DEBUG mode is on; to disable, unset DEBUG)
|
$(info DEBUG mode is on; to disable, unset MM_DEBUG)
|
||||||
|
|
||||||
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-darwin-amd64;
|
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-darwin-amd64;
|
||||||
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-linux-amd64;
|
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-linux-amd64;
|
||||||
|
@ -86,7 +86,7 @@ endif
|
||||||
.PHONY: webapp
|
.PHONY: webapp
|
||||||
webapp: webapp/node_modules
|
webapp: webapp/node_modules
|
||||||
ifneq ($(HAS_WEBAPP),)
|
ifneq ($(HAS_WEBAPP),)
|
||||||
ifeq ($(DEBUG),)
|
ifeq ($(MM_DEBUG),)
|
||||||
cd webapp && $(NPM) run build;
|
cd webapp && $(NPM) run build;
|
||||||
else
|
else
|
||||||
cd webapp && $(NPM) run debug;
|
cd webapp && $(NPM) run debug;
|
||||||
|
@ -129,7 +129,7 @@ deploy: dist
|
||||||
## Builds and installs the plugin to a server, updating the webapp automatically when changed.
|
## Builds and installs the plugin to a server, updating the webapp automatically when changed.
|
||||||
.PHONY: watch
|
.PHONY: watch
|
||||||
watch: apply server bundle
|
watch: apply server bundle
|
||||||
ifeq ($(DEBUG),)
|
ifeq ($(MM_DEBUG),)
|
||||||
cd webapp && $(NPM) run build:watch
|
cd webapp && $(NPM) run build:watch
|
||||||
else
|
else
|
||||||
cd webapp && $(NPM) run debug:watch
|
cd webapp && $(NPM) run debug:watch
|
||||||
|
|
Reference in a new issue