Add make install: copies compiled binary to ~/bin
This commit is contained in:
7
Makefile
7
Makefile
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user