.PHONY : clean all ui api gen wire docker gen: ifeq ($(wildcard "webui/node_modules"),) buf generate else buf generate --exclude-path webui/node_modules endif wire: go mod tidy cd gen/wire && wire ui: cd webui && npm install && npm run build api: go mod tidy && go build . build: gen wire ui api run: gen wire ui api ./pastebin api docker: podman build -t images.internal/pastebin:latest . podman push images.internal/pastebin:latest