add makefile

This commit is contained in:
jc 2024-02-24 23:58:37 -05:00
commit 3ea9b2944c
No known key found for this signature in database

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
# main target
all: build-css build-go
# build css with tailwind
build-css:
pnpm run tw:prod
# build Go application
build-go:
go build -o ./build/potoforio ./cmd/main.go
# cleans up prod css
clean-css:
rm -f ./static/styles.css
# clean all
clean: clean-css
rm -f ./build/potoforio