This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
62 lines (50 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: prepare
prepare:
mkdir -p vendor
if test ! -d ./vendor/plenary.nvim; then git clone [email protected]:nvim-lua/plenary.nvim.git ./vendor/plenary.nvim/; fi
if test ! -d ./vendor/matcher_combinators.lua; then git clone [email protected]:m00qek/matcher_combinators.lua.git ./vendor/matcher_combinators.lua/; fi
pushd ./vendor/plenary.nvim/ && git pull && popd
pushd ./vendor/matcher_combinators.lua/ && git pull && popd
.PHONY: test-lua
test-lua: build-macos-x86
test-lua: install
test-lua: prepare
@echo "Running Lua tests..."
@nvim --headless --noplugin -u spec/spec.vim -c "PlenaryBustedDirectory spec/ { minimal_init = 'spec/spec.vim' }"
.PHONY: test-rust
test-rust:
@echo "Running Rust tests..."
@cargo test
.PHONY: test
test: test-lua
test: test-rust
# Run nvim with DASH_NVIM_DEV env var, this adds a reload command to reload the plugin
export DASH_NVIM_DEV=1
.PHONY: dev
dev:
nvim
.PHONY: clean
clean:
@cargo clean
.PHONY: lint-rust
lint-rust:
cargo clippy -- -D warnings
.PHONY: build-macos-arm
build-macos-arm:
./scripts/build-for-architecture.bash macos-arm
.PHONY: build-macos-x86
build-macos-x86:
./scripts/build-for-architecture.bash macos-x86
.PHONY: build-local
buld-local:
./scripts/build-for-architecture.bash host
.PHONY: build
build: clean
build: build-macos-arm
build: build-macos-x86
.PHONY: install
install:
@./scripts/install-for-architecture.bash
.PHONY: install-local
install-local:
@./scripts/install-local.bash