From 0015c733bdd324963ef2eb75e72ed6152307dda2 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 6 Feb 2023 00:34:06 +0400 Subject: [PATCH] go generate moved out to a gen target. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 00bb385..3757137 100755 --- a/Makefile +++ b/Makefile @@ -10,12 +10,15 @@ all: ${TARGET} .PHONY: ${TARGET} install uninstall -${TARGET}: +gen: go generate web/web.go + + +${TARGET}: go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go 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 -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}