~emersion/soju-dev

soju: Add dependencies on .go files in make rules v2 SUPERSEDED

Alexey Yerin: 1
 Add dependencies on .go files in make rules

 1 files changed, 4 insertions(+), 2 deletions(-)
#496460 .build.yml success
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/22352/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH soju v2] Add dependencies on .go files in make rules Export this patch

Otherwise running `make` didn't do anything on a non-clean state.
---
Added go.mod and go.sum to SRC as well because they do require a
complete rebuild.

 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 79face4..1aa4447 100644
--- a/Makefile
+++ b/Makefile
@@ -9,11 +9,13 @@ PREFIX = /usr/local
BINDIR = bin
MANDIR = share/man

SRC = $(shell find -type f -name "*.go") go.mod go.sum

all: soju sojuctl doc/soju.1

soju:
soju: $(SRC)
	$(GO) build $(GOFLAGS) ./cmd/soju
sojuctl:
sojuctl: $(SRC)
	$(GO) build $(GOFLAGS) ./cmd/sojuctl
doc/soju.1: doc/soju.1.scd
	$(SCDOC) <doc/soju.1.scd >doc/soju.1
-- 
2.31.1
builds.sr.ht
soju/patches/.build.yml: SUCCESS in 1m40s

[Add dependencies on .go files in make rules][0] v2 from [Alexey Yerin][1]

[0]: https://lists.sr.ht/~emersion/soju-dev/patches/22352
[1]: mailto:yyp@disroot.org

✓ #496460 SUCCESS soju/patches/.build.yml https://builds.sr.ht/~emersion/job/496460