Adding makefile local dev niceties
This commit is contained in:
parent
5397775ab7
commit
1b58c24283
11
Makefile
11
Makefile
|
@ -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
|
||||
|
||||
|
|
5
devloop/systemd/echo.service.in
Normal file
5
devloop/systemd/echo.service.in
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Unit]
|
||||
Description=Runs a dummy service to test broadcast
|
||||
|
||||
[Service]
|
||||
ExecStart=%BASE%/echo
|
Loading…
Reference in New Issue
Block a user