From cb5132f2c15d94ff35eb967b677be2278500db05 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 10 Sep 2024 22:27:52 +0200 Subject: [PATCH] Makefile updates * add 'npm run build' as a build step * add dev as PHONY target * switch order of targets --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 76c5d7f..ac2e2b2 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,18 @@ -.PHONY: build run test +.PHONY: build run test dev SOURCE := $(shell find db env lib lnd public server -type f) main.go -build: delphi.market delphi.market: $(SOURCE) + npm run build tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css templ generate -path server/router/pages go build -o delphi.market . +build: delphi.market + run: + npm run build tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css templ generate -path server/router/pages go run .