~emersion/soju-dev

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

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

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

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

Otherwise running `make` didn't do anything on a non-clean state.
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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

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

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 1m42s

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

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

✓ #496144 SUCCESS soju/patches/.build.yml https://builds.sr.ht/~emersion/job/496144
Thanks for the patch. Maybe we can just make the Go rules .PHONY and let
the go tool take care of re-building when necessary?