-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 788 Bytes
/
Makefile
File metadata and controls
41 lines (31 loc) · 788 Bytes
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
MAKEFLAGS += --no-print-directory --always-make
# all: Default target, install binary
all: install
# help: Print help
help: Makefile
@printf "\033[1mUsage: make <TARGETS> ...\033[0m\n\n\033[1mTargets:\033[0m\n"
@sed -n 's/^# //p' $< | awk -F':' '{printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}' | sort | sed -e 's/^/ /'
# install: Install the CLI
install:
@cargo install --path ./coal
# build: Build binary
build:
@cargo build --release
# clean: Clean build artifacts
clean:
@cargo clean
# run: Run the CLI
run:
@cargo run
# lint: Run clippy
lint:
@cargo clippy
# test: Run tests
test:
@cargo test
# docs: Generate docs
docs:
@cargo doc --no-deps --document-private-items --open
# vsc: Install the VSCode language extension
vsc:
@(cd ./extensions/vscode-coal && make)