-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
28 lines (23 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: help gen gen-check doc
# default target if you just type `make`
help:
@echo 'Targets are: help, fix, gen, gen-check, doc'
fix: webgpu.yml
go run ./fix -yaml webgpu.yml
gen: schema.json webgpu.yml
go run ./gen -schema schema.json -yaml webgpu.yml -header webgpu.h
gen-check: fix gen
@git diff --quiet -- webgpu.h || { \
echo "error: The re-generated header from yml doesn't match the checked-in header"; \
git diff -- webgpu.h; \
exit 1; \
}
@git diff --quiet -- webgpu.yml || { \
echo "error: Please re-run 'make fix' to format the yml"; \
git diff -- webgpu.yml; \
exit 1; \
}
doc: webgpu.h Doxyfile
doxygen Doxyfile
# Verify that no ` or :: made it through into the final docs
! grep -RE '`|>::' doc/generated/**/*.html