- Restructured info.go with extracted helper functions for better readability - Enhanced updateassets.go with cleaner asset processing logic and better error handling - Improved client.go formatting and logging consistency - Added logs.go for centralized logging functionality - Updated dependencies in go.mod to include tint as direct dependency - Cleaned up README.md with simplified installation instructions and structure - Added comprehensive assets/ directory with build configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
No EOL
1.1 KiB
Makefile
43 lines
No EOL
1.1 KiB
Makefile
GO ?= $(shell command -v go 2> /dev/null)
|
|
NPM ?= $(shell command -v npm 2> /dev/null)
|
|
CURL ?= $(shell command -v curl 2> /dev/null)
|
|
MM_DEBUG ?=
|
|
GOPATH ?= $(shell go env GOPATH)
|
|
GO_TEST_FLAGS ?= -race
|
|
GO_BUILD_FLAGS ?=
|
|
MM_UTILITIES_DIR ?= ../mattermost-utilities
|
|
DLV_DEBUG_PORT := 2346
|
|
DEFAULT_GOOS := $(shell go env GOOS)
|
|
DEFAULT_GOARCH := $(shell go env GOARCH)
|
|
|
|
export GO111MODULE=on
|
|
|
|
# We need to export GOBIN to allow it to be set
|
|
# for processes spawned from the Makefile
|
|
export GOBIN ?= $(PWD)/bin
|
|
|
|
# You can include assets this directory into the bundle. This can be e.g. used to include profile pictures.
|
|
ASSETS_DIR ?= assets
|
|
|
|
## Define the default target (make all)
|
|
.PHONY: default
|
|
default: all
|
|
|
|
# Verify environment, and define PLUGIN_ID, PLUGIN_VERSION, HAS_SERVER and HAS_WEBAPP as needed.
|
|
include build/setup.mk
|
|
|
|
BUNDLE_NAME ?= $(PLUGIN_ID)-$(PLUGIN_VERSION).tar.gz
|
|
|
|
# Include custom makefile, if present
|
|
ifneq ($(wildcard build/custom.mk),)
|
|
include build/custom.mk
|
|
endif
|
|
|
|
ifneq ($(MM_DEBUG),)
|
|
GO_BUILD_GCFLAGS = -gcflags "all=-N -l"
|
|
else
|
|
GO_BUILD_GCFLAGS =
|
|
endif
|
|
|
|
# Include modular makefiles
|
|
include build/*.mk |