magicwallet/Makefile

20 lines
437 B
Makefile

.PHONY: build run
SOURCE := $(shell find fonts lib pages server -type f) main.go
# build binary for deployment
build: hermes
hermes: $(SOURCE)
tailwindcss -i public/css/base.css -o public/css/tailwind.css
templ generate -path pages
go build -o hermes .
# 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