-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 973 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (31 loc) · 973 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
# Understanding Makefile vs Justfile:
#
# This file should primarily *only* involve
# invoking tools which *do not* have side effects outside
# of the current working directory. In particular, this file MUST NOT:
# - Spawn podman or virtualization tools
# - Invoke `sudo`
#
# Stated positively, the code invoked from here is only expected to
# operate as part of "a build" that results in binaries plus data files.
# The two key operations are `make` and `make install`. As this is Rust,
# the generated binaries are in the current directory under `target/`
# by default.
#
# The Justfile contains rules for things like integration tests,
# container builds, etc.
prefix ?= /usr
# Build all binaries
.PHONY: bin
bin:
cargo build --release --workspace
install:
install -D -m 0755 -t $(DESTDIR)$(prefix)/bin target/release/devaipod
.PHONY: validate
validate:
cargo fmt -- --check -l
cargo test --no-run
cargo clippy -- -D warnings
.PHONY: clean
clean:
cargo clean