Files
guz.one/makefile
Gustavo "Guz" L. de Mello 47f2fc9299 chore: remove templ make
note to self: do not use dots on the start of projects' folders
2024-05-23 11:20:26 -03:00

31 lines
491 B
Makefile

all: run
dev:
air
run: bin/www
./bin/www
run-vercel: bin/vercel
./bin/vercel
build-static: templ
go run ./cmd/build/main.go
build-vercel: build-static
bin/www: main.go templ
go build -o ./bin/www ./main.go
bin/vercel: cmd/vercel/main.go templ build-vercel
go build -o ./bin/vercel ./cmd/vercel/main.go
templ:
templ generate
clean:
if [[ -d "dist" ]]; then rm -r ./dist; fi
if [[ -d "tmp" ]]; then rm -r ./tmp; fi
if [[ -d "bin" ]]; then rm -r ./bin; fi
rm $(TEMPL_FILES)