From 3ea9b2944c380fd2a15645e4216853bb185269ef Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:58:37 -0500 Subject: [PATCH] add makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..070a39c --- /dev/null +++ b/Makefile @@ -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