2021-04-24 18:36:34 +00:00
|
|
|
GOFILES=$(shell find ./ -type f -name '*.go')
|
2020-10-29 06:21:07 +00:00
|
|
|
|
|
|
|
mumble-discord-bridge: $(GOFILES)
|
2021-01-09 23:18:31 +00:00
|
|
|
goreleaser build --skip-validate --rm-dist
|
|
|
|
|
|
|
|
dev: $(GOFILES)
|
|
|
|
goreleaser build --skip-validate --rm-dist && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge
|
2020-10-30 05:38:01 +00:00
|
|
|
|
2021-04-07 05:24:17 +00:00
|
|
|
dev-race: $(GOFILES)
|
2021-04-15 04:43:12 +00:00
|
|
|
go run -race $(GOFILES)
|
2021-04-07 05:24:17 +00:00
|
|
|
|
2021-01-16 19:06:58 +00:00
|
|
|
dev-profile: $(GOFILES)
|
|
|
|
goreleaser build --skip-validate --rm-dist && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge -cpuprofile cpu.prof
|
|
|
|
|
2021-04-18 04:30:27 +00:00
|
|
|
test-chart: SHELL:=/bin/bash
|
|
|
|
test-chart:
|
|
|
|
go test &
|
|
|
|
until pidof mumble-discord-bridge.test; do continue; done;
|
2021-04-18 21:17:16 +00:00
|
|
|
psrecord --plot docs/test-cpu-memory.png $$(pidof mumble-discord-bridge.test)
|
2021-04-18 04:30:27 +00:00
|
|
|
|
2020-10-30 05:38:01 +00:00
|
|
|
docker-latest:
|
2020-11-04 06:12:43 +00:00
|
|
|
docker build -t stieneee/mumble-discord-bridge:latest .
|
2021-01-18 03:41:42 +00:00
|
|
|
|
|
|
|
docker-next:
|
|
|
|
docker build -t stieneee/mumble-discord-bridge:next .
|
|
|
|
docker push stieneee/mumble-discord-bridge:next
|
2020-10-30 05:38:01 +00:00
|
|
|
|
|
|
|
clean:
|
2020-11-08 22:58:08 +00:00
|
|
|
rm -f mumble-discord-bridge
|
2020-10-30 05:38:01 +00:00
|
|
|
|
2021-01-18 03:41:42 +00:00
|
|
|
.PHONY: docker-latest docker-latest-push clean
|