Makefile: build gitsrht-* Go programs

This commit is contained in:
Drew DeVault 2022-03-24 12:12:16 +01:00
parent 4439008384
commit 6b6cdfb159
2 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ overrides/
.pgp
build
*_gen.go
api/api

View File

@ -2,11 +2,23 @@ SRHT_PATH?=/usr/lib/python3.8/site-packages/srht
MODULE=gitsrht/
include ${SRHT_PATH}/Makefile
all: api
all: api gitsrht-dispatch gitsrht-keys gitsrht-shell gitsrht-update-hook
api:
cd api && go generate ./loaders
cd api && go generate ./graph
cd api && go build
.PHONY: all api
gitsrht-dispatch:
cd gitsrht-dispatch && go build
gitsrht-keys:
cd gitsrht-keys && go build
gitsrht-shell:
cd gitsrht-shell && go build
gitsrht-update-hook:
cd gitsrht-update-hook && go build
.PHONY: all api gitsrht-dispatch gitsrht-keys gitsrht-shell gitsrht-update-hook