~edwargix/git.sr.ht

63c4d12448a380bf1a2e65a372e6c43505ec52b5 — Adnan Maolood 2 years ago e99eddb
Makefile: Fix race condition

Generating the GraphQL API with gqlgen will fail if the loaders have not
been generated yet. Ensure that the loaders are always generated first.
1 files changed, 2 insertions(+), 1 deletions(-)

M Makefile
M Makefile => Makefile +2 -1
@@ 5,7 5,8 @@ include ${SRHT_PATH}/Makefile
all: api

api:
	cd api && go generate ./...
	cd api && go generate ./loaders
	cd api && go generate ./graph
	cd api && go build

.PHONY: all api