~taiite/public-inbox

senpai: Add Go and module files as Makefile deps v1 SUPERSEDED

Galen Abell: 1
 Add Go and module files as Makefile deps

 1 files changed, 4 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/~taiite/public-inbox/patches/21300/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH senpai] Add Go and module files as Makefile deps Export this patch

This ensures that running `make` will rebuild senpai if files other than
cmd/senpai/main.go are modified.
---
Resending with proper repo prefix.

 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:
senpai: $(GOSRC)
	$(GO) build $(GOFLAGS) ./cmd/senpai
doc/senpai.1: doc/senpai.1.scd
	$(SCDOC) < doc/senpai.1.scd > doc/senpai.1
--
2.31.0
Thank you for the patch!

On Fri, 19 Mar 2021 22:53:37 +0100, Galen Abell wrote: