tstor/server/Makefile
2025-03-23 04:11:31 +04:00

7 lines
350 B
Makefile

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 $@