2023-11-03 21:17:04 +01:00
|
|
|
.PHONY: build run test
|
2023-09-10 17:39:34 +02:00
|
|
|
|
2023-11-23 00:15:44 +01:00
|
|
|
SOURCE := $(shell find db env lib lnd pages public server -type f) main.go
|
2023-09-10 17:39:34 +02:00
|
|
|
|
2023-09-09 22:52:50 +02:00
|
|
|
build: delphi.market
|
|
|
|
|
2023-09-10 17:39:34 +02:00
|
|
|
delphi.market: $(SOURCE)
|
2024-07-10 06:11:28 +02:00
|
|
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
2024-07-09 22:41:29 +02:00
|
|
|
templ generate -path server/router/pages
|
2023-09-10 17:39:34 +02:00
|
|
|
go build -o delphi.market .
|
2023-09-09 22:52:50 +02:00
|
|
|
|
|
|
|
run:
|
2024-07-10 06:11:28 +02:00
|
|
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
2024-07-09 22:41:29 +02:00
|
|
|
templ generate -path server/router/pages
|
2023-09-10 17:39:34 +02:00
|
|
|
go run .
|
2023-09-09 22:52:50 +02:00
|
|
|
|
2024-07-10 04:48:45 +02:00
|
|
|
dev:
|
|
|
|
bash hotreload.sh
|
|
|
|
|
2023-10-04 15:37:04 +02:00
|
|
|
test:
|
2023-11-03 23:00:09 +01:00
|
|
|
go test -v -count=1 ./server/router/handler/...
|