# Makefile .PHONY: build BINARY_NAME=projectreshoot # build builds the tailwind css sheet, and compiles the binary into a usable thing. build: go mod tidy && \ templ generate && \ go generate && \ go build -ldflags="-w -s" -o ${BINARY_NAME} # dev runs the development server where it builds the tailwind css sheet, # and compiles the project whenever a file is changed. dev: npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch &\ templ generate --watch --cmd="go generate" &\ templ generate --watch --cmd="go run ." clean: go clean