20 lines
452 B
Makefile
20 lines
452 B
Makefile
.PHONY: build run
|
|
|
|
SOURCE := $(shell find fonts lib pages server -type f) main.go
|
|
|
|
# build binary for deployment
|
|
build: magicwallet
|
|
magicwallet: $(SOURCE)
|
|
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
|
templ generate -path pages
|
|
go build -o magicwallet .
|
|
|
|
# run code for development (no watch mode yet)
|
|
run:
|
|
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
|
templ generate -path pages
|
|
go run .
|
|
|
|
dev:
|
|
bash hotreload.sh
|