broadcast/Makefile

31 lines
608 B
Makefile
Raw Permalink Normal View History

VERSION ?= dev
GO ?= go
2023-03-08 23:25:46 +01:00
GOARCH ?= amd64
build: ./bin ui-build
2023-03-08 23:25:46 +01:00
GOOS=linux GOARCH=$(GOARCH) \
$(GO) build -o ./bin/broadcast-$(GOARCH) ./cmd/broadcast
./bin:
mkdir -p bin
2023-03-13 01:09:29 +01:00
./bin/echo:
$(GO) build -o ./bin/echo ./bin/echo
ui-%:
cd ui && make $*
2023-03-08 22:22:07 +01:00
2023-03-13 01:09:29 +01:00
$(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
2023-03-08 22:22:07 +01:00
dev:
docker compose up
dev-build:
docker compose build