summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-07-31 16:11:01 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-07-31 16:11:01 -0700
commitd614da2435f8b003e502faf6c9eba9804db79541 (patch)
tree17d839b32e974a594b821a9a729b94b2d383b790 /Makefile
parent9779b565bfa0b352fe8c13134246c88f818ea7ac (diff)
make dev/install to add a dev install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b0fe50262..52dfca242 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,14 @@ init:
git submodule update --init --recursive
.PHONY: init
+# Slightly cursed way that we setup a dev version of this locally on NixOS.
+dev/install:
+ zig build -Dcpu=baseline
+ patchelf --set-rpath "${LD_LIBRARY_PATH}" zig-out/bin/ghostty
+ mkdir -p ${HOME}/bin
+ cp zig-out/bin/ghostty ${HOME}/bin/devtty
+.PHONY: dev/install
+
# 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.
#