forked from webgpu-native/webgpu-headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (21 loc) · 951 Bytes
/
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
.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