This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Add Go and module files as Makefile deps

Message ID
DKIM signature
Download raw message
Patch: +4 -1
This ensures that running `make` will rebuild senpai if files other than
cmd/senpai/main.go are modified.
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8cc57e5..052f535 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,12 @@ PREFIX = /usr/local
BINDIR = bin
MANDIR = share/man

GOSRC:=$(shell find . -name '*.go')
GOSRC+=go.mod go.sum

all: senpai doc/senpai.1 doc/senpai.5

senpai: $(GOSRC)
	$(GO) build $(GOFLAGS) ./cmd/senpai
doc/senpai.1: doc/senpai.1.scd
	$(SCDOC) < doc/senpai.1.scd > doc/senpai.1
Reply to thread Export thread (mbox)