16 lines
387 B
Makefile
16 lines
387 B
Makefile
CACHEDIR := $(PWD)/cache
|
|
build:
|
|
cd tree-sitter-nix-shell && tree-sitter generate
|
|
|
|
test: build
|
|
cd tree-sitter-nix-shell && XDG_CACHE_HOME="${CACHEDIR}" tree-sitter test
|
|
XDG_CACHE_HOME="${CACHEDIR}" ./tests/test_highlight basic
|
|
|
|
clean:
|
|
rm -f tree-sitter-nix-shell/{Cargo.toml,binding.gyp}
|
|
rm -rf tree-sitter-nix-shell/{bindings/,src/}
|
|
rm -rf "${CACHEDIR}"
|
|
|
|
|
|
.PHONY: build test clean
|