add Makefile

This commit is contained in:
Guilherme Rugai Freire 2024-02-20 14:22:11 -03:00
parent ed82c38af4
commit e07aeea312
No known key found for this signature in database
GPG Key ID: AC1D9B6E48E16AC1
2 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
main
bin/*
!bin/.gitkeep
*.db

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
all: mail web
mail:
go build -o "./bin/$@_server" "./cmd/mail_server"
web:
templ generate
go build -o "./bin/$@_server" "./cmd/web_server"