go generate moved out to a gen target.
This commit is contained in:
parent
fcdb2f3bf2
commit
0015c733bd
7
Makefile
7
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}
|
||||
|
Loading…
Reference in New Issue
Block a user