Files
MuyueWorkspace/Makefile
Augustin 44691225e7
All checks were successful
CI / build (push) Successful in 2m41s
refactor: modularize TUI, improve error handling, add CI caching and tests
Split monolithic app.go into focused modules (dashboard, chat, workflow,
config, agents, terminal, commands, handlers). Add proper error handling
for installer commands, proxy pipes, and MCP config parsing. Fix daemon
channel buffer, cap orchestrator history, compile think regex once, and
set HTTP timeouts on preview server. Improve CI with Go module caching,
dependency download step, and test stage with race detection.

😘 Generated with Crush

Assisted-by: GLM-5-Turbo via Crush <crush@charm.land>
2026-04-20 19:13:48 +02:00

49 lines
1.2 KiB
Makefile

GOPATH ?= $(shell go env GOPATH)
GOBIN ?= $(GOPATH)/bin
BINARY = muyue
BUILD_DIR = .
GO = go
.PHONY: build install clean test run scan fmt lint
build:
$(GO) build -o $(BUILD_DIR)/$(BINARY) ./cmd/muyue/
install: build
cp $(BUILD_DIR)/$(BINARY) /usr/local/bin/
install-local: build
mkdir -p $(HOME)/.local/bin
cp $(BUILD_DIR)/$(BINARY) $(HOME)/.local/bin/
clean:
rm -f $(BUILD_DIR)/$(BINARY)
test:
$(GO) test ./... -v
run: build
./$(BINARY)
scan: build
./$(BINARY) scan
fmt:
gofmt -w .
which goimports > /dev/null 2>&1 && goimports -w . || true
lint:
which golangci-lint > /dev/null 2>&1 && golangci-lint run || true
build-all:
GOOS=linux GOARCH=amd64 $(GO) build -o dist/$(BINARY)-linux-amd64 ./cmd/muyue/
GOOS=linux GOARCH=arm64 $(GO) build -o dist/$(BINARY)-linux-arm64 ./cmd/muyue/
GOOS=darwin GOARCH=amd64 $(GO) build -o dist/$(BINARY)-darwin-amd64 ./cmd/muyue/
GOOS=darwin GOARCH=arm64 $(GO) build -o dist/$(BINARY)-darwin-arm64 ./cmd/muyue/
GOOS=windows GOARCH=amd64 $(GO) build -o dist/$(BINARY)-windows-amd64.exe ./cmd/muyue/
GOOS=windows GOARCH=arm64 $(GO) build -o dist/$(BINARY)-windows-arm64.exe ./cmd/muyue/
.PHONY: deps
deps:
$(GO) mod tidy