summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-03-13 09:47:26 -0400
committerSam Anthony <sam@samanthony.xyz>2026-03-13 09:47:26 -0400
commit3b8368d665c8818b84557f54681c5ebab35ba22e (patch)
treef29b07f09e7840a64a718a00ece6d21d8bf24506
parent0c750027e913a773a98220c691f01b2391cdae69 (diff)
downloadbuth-3b8368d665c8818b84557f54681c5ebab35ba22e.zip
makefile: rebuild backend when source changes
-rw-r--r--.gitignore1
-rw-r--r--Makefile5
-rw-r--r--doc/libs.md2
3 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index ef2d82e..5b2239e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ bin/
doc/.obsidian/
.hugo_build.lock
public/
+tmp/
diff --git a/Makefile b/Makefile
index 7da056a..acd4c49 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CMD = $(wildcard back/cmd/*)
BIN = $(addprefix bin/, $(notdir ${CMD}))
+SRC = $(shell find back -name '*.go')
all: doc public ${BIN}
@@ -9,10 +10,12 @@ public:
${BIN}: bin/%: back/cmd/%
go build -o $@ ./$<
+${BIN}: ${SRC}
+
doc: doc/arch.png
doc/arch.png: doc/arch.dot
dot -Tpng <$< >$@
clean:
- rm -rf bin public
+ rm -rf bin public tmp
diff --git a/doc/libs.md b/doc/libs.md
index 3934bf4..befbbb3 100644
--- a/doc/libs.md
+++ b/doc/libs.md
@@ -2,5 +2,5 @@
https://github.com/acaloiaro/hugo-htmx-go-template
https://github.com/docker-archive/go-p9p
-https://github.com/gorilla/websocket
+https://github.com/Harvey-OS/ninep
https://github.com/alexedwards/argon2id