add makefile
This commit is contained in:
parent
edb5f84d10
commit
3ea9b2944c
1 changed files with 18 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue