~edwargix/git.sr.ht

6b6cdfb1592ea3b6d3e656ac793256808c8cfb6c — Drew DeVault 2 years ago 4439008
Makefile: build gitsrht-* Go programs
2 files changed, 15 insertions(+), 2 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +1 -0
@@ 15,3 15,4 @@ overrides/
.pgp
build
*_gen.go
api/api

M Makefile => Makefile +14 -2
@@ 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