From 3b8368d665c8818b84557f54681c5ebab35ba22e Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 13 Mar 2026 09:47:26 -0400 Subject: makefile: rebuild backend when source changes --- .gitignore | 1 + Makefile | 5 ++++- doc/libs.md | 2 +- 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 -- cgit v1.2.3