Makefile updates

* add 'npm run build' as a build step
* add dev as PHONY target
* switch order of targets
This commit is contained in:
ekzyis 2024-09-10 22:27:52 +02:00
parent ecee2f2a46
commit cb5132f2c1
1 changed files with 5 additions and 2 deletions

View File

@ -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 SOURCE := $(shell find db env lib lnd public server -type f) main.go
build: delphi.market
delphi.market: $(SOURCE) delphi.market: $(SOURCE)
npm run build
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
templ generate -path server/router/pages templ generate -path server/router/pages
go build -o delphi.market . go build -o delphi.market .
build: delphi.market
run: run:
npm run build
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
templ generate -path server/router/pages templ generate -path server/router/pages
go run . go run .