generate-graphql: src/delivery/graphql/generated.go ui/lib/api/schema.graphql

src/delivery/graphql/generated.go: .gqlgen.yml cmd/generate-graphql/* $(shell find graphql -type f)
	go run cmd/generate-graphql/main.go

ui/lib/api/schema.graphql: src/delivery/graphql/* cmd/generate-graphql-schema/*
	go run cmd/generate-graphql-schema/main.go $@