VERSION ?= dev GO ?= go GOARCH ?= amd64 build: ./bin ui-build GOOS=linux GOARCH=$(GOARCH) \ $(GO) build -o ./bin/broadcast-$(GOARCH) ./cmd/broadcast ./bin: mkdir -p bin ./bin/echo: $(GO) build -o ./bin/echo ./bin/echo ui-%: cd ui && make $* $(HOME)/.config/systemd/user/echo.service: ./bin/echo cat ./devloop/systemd/echo.service.in | sed -e 's|%BASE%|$(shell pwd)/bin|' | tee -a $(HOME)/.config/systemd/user/echo.service local-dev: $(HOME)/.config/systemd/user/echo.service local-clean: rm $(HOME)/.config/systemd/user/echo.service dev: docker compose up dev-build: docker compose build