From 2ec534d63a0e00f3a808daa1ef58cbb6212be7bb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 9 Jul 2022 18:14:00 +0200 Subject: [PATCH] Add Makefile --- .gitignore | 4 ++++ Makefile | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 281637f..ca406bb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,7 @@ /graph/model/models_gen.go /query/gql.go config.ini +/sh-api +/sh-index +/sh-search +/sh-web diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aeb1c09 --- /dev/null +++ b/Makefile @@ -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