1
0

go generate moved out to a gen target.

This commit is contained in:
Alexander Andreev 2023-02-06 00:34:06 +04:00
parent fcdb2f3bf2
commit 0015c733bd
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -10,12 +10,15 @@ all: ${TARGET}
.PHONY: ${TARGET} install uninstall .PHONY: ${TARGET} install uninstall
${TARGET}: gen:
go generate web/web.go go generate web/web.go
${TARGET}:
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
run: run:
bin/${TARGET} -listen 127.0.0.1:18123 -db . bin/${TARGET} -listen 127.0.0.1:18123 -db . -gb-owner Arav -gb-pagesz 10
install: install:
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}