2024-03-20 13:35:34 +01:00
|
|
|
SRHT_PATH?=/usr/lib/python3.11/site-packages/srht
|
2017-04-02 12:51:26 +02:00
|
|
|
MODULE=gitsrht/
|
2017-02-06 07:29:27 +01:00
|
|
|
include ${SRHT_PATH}/Makefile
|
2022-01-21 01:02:53 +01:00
|
|
|
|
2022-03-24 12:12:16 +01:00
|
|
|
all: api gitsrht-dispatch gitsrht-keys gitsrht-shell gitsrht-update-hook
|
2022-01-21 01:02:53 +01:00
|
|
|
|
2024-01-31 11:53:43 +01:00
|
|
|
api/loaders/*_gen.go &: api/loaders/generate.go api/loaders/gen go.sum
|
2022-02-04 15:48:05 +01:00
|
|
|
cd api && go generate ./loaders
|
2024-01-31 11:36:17 +01:00
|
|
|
|
2024-01-31 12:01:39 +01:00
|
|
|
api/graph/api/generated.go: api/graph/schema.graphqls api/graph/generate.go go.sum api/loaders/*_gen.go
|
2022-02-04 15:48:05 +01:00
|
|
|
cd api && go generate ./graph
|
2024-01-31 11:36:17 +01:00
|
|
|
|
|
|
|
api: api/graph/api/generated.go api/loaders/*_gen.go
|
2022-01-21 01:02:53 +01:00
|
|
|
cd api && go build
|
|
|
|
|
2022-03-24 12:12:16 +01:00
|
|
|
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
|