build: invoke `go build` once only

This commit is contained in:
Simon Ser 2023-02-06 15:26:10 +01:00
parent 09e1393453
commit 67ccc19fdd
1 changed files with 2 additions and 5 deletions

View File

@ -18,11 +18,8 @@ goflags := $(GOFLAGS) -ldflags=" \
all: soju sojudb sojuctl doc/soju.1 all: soju sojudb sojuctl doc/soju.1
soju: soju:
$(GO) build $(goflags) ./cmd/soju $(GO) build $(goflags) ./cmd/soju ./cmd/sojudb ./cmd/sojuctl
sojudb: sojudb sojuctl: soju
$(GO) build $(goflags) ./cmd/sojudb
sojuctl:
$(GO) build $(goflags) ./cmd/sojuctl
doc/soju.1: doc/soju.1.scd doc/soju.1: doc/soju.1.scd
$(SCDOC) <doc/soju.1.scd >doc/soju.1 $(SCDOC) <doc/soju.1.scd >doc/soju.1