build: fix binaries not being built

Without -o, when multiple packages are built, go build discards the
resulting binaries.
This commit is contained in:
palm93 2023-02-11 23:28:29 +01:00 committed by Simon Ser
parent 20b1159c02
commit 478bd2077b

View file

@ -18,7 +18,7 @@ goflags := $(GOFLAGS) -ldflags=" \
all: soju sojudb sojuctl doc/soju.1 all: soju sojudb sojuctl doc/soju.1
soju: soju:
$(GO) build $(goflags) ./cmd/soju ./cmd/sojudb ./cmd/sojuctl $(GO) build $(goflags) -o . ./cmd/soju ./cmd/sojudb ./cmd/sojuctl
sojudb sojuctl: soju sojudb sojuctl: soju
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