diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-04-04 14:52:47 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-04-04 14:52:47 -0700 |
| commit | 27f3e8931664d3af455d15897c6718f6aca62ba4 (patch) | |
| tree | a74a99a4cc5dd3289c9a3df6a8441b663f964b3a /Makefile | |
| parent | 17be18dead3b205469528fe6efaa32631d8dca4d (diff) | |
Makefile with task for updating glad
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..2f77fbc2b --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# glad updates the GLAD loader. To use this, place the generated glad.zip +# in this directory next to the Makefile, remove vendor/glad and run this target. +# +# Generator: https://gen.glad.sh/ +glad: vendor/glad +.PHONY: glad + +vendor/glad: vendor/glad/include/glad/gl.h vendor/glad/include/glad/glad.h + +vendor/glad/include/glad/gl.h: glad.zip + rm -rf vendor/glad + mkdir -p vendor/glad + unzip glad.zip -dvendor/glad + find vendor/glad -type f -exec touch '{}' + + +vendor/glad/include/glad/glad.h: vendor/glad/include/glad/gl.h + @echo "#include <glad/gl.h>" > $@ |
