Add make install: copies compiled binary to ~/bin

This commit is contained in:
2026-06-10 10:45:59 -07:00
parent 6171d275e9
commit 3d6742945b

View File

@@ -1,4 +1,4 @@
.PHONY: test lint fmt fmt-check check build build-bin dev clean docker hooks .PHONY: test lint fmt fmt-check check build build-bin install dev clean docker hooks
# Use `timeout` (GNU coreutils) when available so `make test` is hard-capped. # Use `timeout` (GNU coreutils) when available so `make test` is hard-capped.
# On macOS without coreutils this is empty and the cap is skipped. # On macOS without coreutils this is empty and the cap is skipped.
@@ -29,6 +29,11 @@ build:
build-bin: build-bin:
nix-shell -p bun --run "bun build bin/quak.ts --compile --outfile bin/quak" nix-shell -p bun --run "bun build bin/quak.ts --compile --outfile bin/quak"
install: build-bin
mkdir -p ~/bin
cp bin/quak ~/bin/quak
chmod +x ~/bin/quak
dev: dev:
@$(YARN) tsc --watch @$(YARN) tsc --watch