mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-12 10:48:39 +03:00
29 lines
730 B
Makefile
29 lines
730 B
Makefile
init:
|
|
@echo You probably want to run "zig build" instead.
|
|
.PHONY: init
|
|
|
|
# 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>" > $@
|
|
|
|
clean:
|
|
rm -rf \
|
|
zig-out zig-cache \
|
|
macos/build \
|
|
macos/GhosttyKit.xcframework
|
|
.PHONY: clean
|