21 lines
257 B
Makefile
21 lines
257 B
Makefile
APP=pxmon
|
|
AGENT=pxmon-agent
|
|
|
|
.PHONY: build test tidy run clean
|
|
|
|
build:
|
|
go build -o bin/$(APP) ./cmd/$(APP)
|
|
go build -o bin/$(AGENT) ./cmd/$(AGENT)
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
run: build
|
|
./bin/$(APP)
|
|
|
|
clean:
|
|
rm -rf bin/$(APP) bin/$(AGENT)
|