-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (15 loc) · 545 Bytes
/
Makefile
File metadata and controls
20 lines (15 loc) · 545 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-FileCopyrightText: 2026 The templig contributors.
# SPDX-License-Identifier: MPL-2.0
.PHONY: all clean run
all: config.go
config.go: schema.json
go tool go-jsonschema \
$< \
--only-models \
--schema-package=https://github.com/AlphaOne1/templig/examples/configSchema/schema=main \
--schema-output=https://github.com/AlphaOne1/templig/examples/configSchema/schema=$@ \
--schema-root-type=https://github.com/AlphaOne1/templig/examples/configSchema/schema=Config
run: main.go config.go
go run $^
clean:
-rm -f config.go