~emersion/soju-dev

Persist go binaries and gitignore sojudb v1 APPLIED

palm93: 1
 Persist go binaries and gitignore sojudb

 2 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/38902/mbox | git am -3
Learn more about email & git

[PATCH] Persist go binaries and gitignore sojudb Export this patch

Go doesn't persist generated binaries when building multiple packages
without the -o flag.
---
 .gitignore | 1 +
 Makefile   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 885b688..1067067 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
/soju
/sojuctl
/sojudb
/soju.db
/doc/soju.1
diff --git a/Makefile b/Makefile
index 1ec591b..9ae475e 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ goflags := $(GOFLAGS) -ldflags=" \
all: soju sojudb sojuctl doc/soju.1

soju:
	$(GO) build $(goflags) ./cmd/soju ./cmd/sojudb ./cmd/sojuctl
	$(GO) build -o . $(goflags) ./cmd/soju ./cmd/sojudb ./cmd/sojuctl
sojudb sojuctl: soju
doc/soju.1: doc/soju.1.scd
	$(SCDOC) <doc/soju.1.scd >doc/soju.1
-- 
2.39.1
Split into 2 patches and pushed, thanks!