Add Makefile
This commit is contained in:
parent
3535309004
commit
2ec534d63a
2 changed files with 25 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
21
Makefile
Normal 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
|
Loading…
Reference in a new issue