diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-13 09:47:26 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-13 09:47:26 -0400 |
| commit | 3b8368d665c8818b84557f54681c5ebab35ba22e (patch) | |
| tree | f29b07f09e7840a64a718a00ece6d21d8bf24506 | |
| parent | 0c750027e913a773a98220c691f01b2391cdae69 (diff) | |
| download | buth-3b8368d665c8818b84557f54681c5ebab35ba22e.zip | |
makefile: rebuild backend when source changes
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | doc/libs.md | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -2,3 +2,4 @@ bin/ doc/.obsidian/ .hugo_build.lock public/ +tmp/ @@ -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 |