Adding makefile local dev niceties

This commit is contained in:
sfigato 2023-03-13 01:09:29 +01:00
parent 5397775ab7
commit 1b58c24283
Signed by: blallo
GPG Key ID: C530464EEDCF489A
2 changed files with 16 additions and 0 deletions

View File

@ -9,9 +9,20 @@ build: ./bin ui-build
./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

View File

@ -0,0 +1,5 @@
[Unit]
Description=Runs a dummy service to test broadcast
[Service]
ExecStart=%BASE%/echo