blasphem/Makefile

23 lines
480 B
Makefile
Raw Normal View History

2022-09-25 22:17:07 -04:00
FE=pkg/frontend/frontend
2022-12-19 19:24:01 -05:00
VER=$(shell git describe --always --tags)
LDFLAGS=-ldflags='-X dynatron.me/x/blasphem/internal/common.Version=${VER}'
2022-09-25 22:17:07 -04:00
2022-09-25 11:42:36 -04:00
all: build
build:
2022-12-19 19:24:01 -05:00
go build ${LDFLAGS} -o blas ./cmd/blas/
2022-09-25 11:42:36 -04:00
2022-11-11 18:02:52 -05:00
serve:
2022-12-19 19:24:01 -05:00
go run ${LDFLAGS} ./cmd/blas/ serve ${BLAS_ARGS}
2022-11-11 18:02:52 -05:00
2022-09-25 22:17:07 -04:00
# pkg/frontend/frontend/hass_frontend:
frontend:
${FE}/script/setup
${FE}/script/build_frontend
2022-11-11 18:02:52 -05:00
todo:
rg -g '!Makefile' -g '!pkg/frontend/frontend/**' -A3 -C3 'XXX:|TODO:' .
2022-09-25 22:17:07 -04:00
2022-09-25 11:42:36 -04:00
debug:
dlv debug ./cmd/blas/ ${ARGS}