Add Makefile

This commit is contained in:
Drew DeVault 2022-07-09 18:14:00 +02:00
parent 3535309004
commit 2ec534d63a
2 changed files with 25 additions and 0 deletions

4
.gitignore vendored
View file

@ -2,3 +2,7 @@
/graph/model/models_gen.go
/query/gql.go
config.ini
/sh-api
/sh-index
/sh-search
/sh-web

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
.POSIX:
.SUFFIXES:
all: sh-api sh-index sh-search sh-web
generate:
go generate ./...
sh-api: generate
go build -o sh-api cmd/sh-api/main.go
sh-index: generate
go build -o sh-index cmd/sh-index/main.go
sh-search: generate
go build -o sh-search cmd/sh-search/main.go
sh-web: generate
go build -o sh-web cmd/sh-web/main.go
.PHONY: all sh-api sh-index sh-search sh-web generate