Skip to content

Commit e782c32

Browse files
committed
build-sys: Run make manpages in release mode too
Otherwise we compile many dependencies twice unnecessarily. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 0f47d8b commit e782c32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ prefix ?= /usr
3030
# the code is really tiny.
3131
# (Note we should also make installation of the units conditional on the rhsm feature)
3232
CARGO_FEATURES ?= $(shell . /usr/lib/os-release; if echo "$$ID_LIKE" |grep -qF rhel; then echo rhsm; fi)
33+
CARGO_PROFILE ?= release
3334

3435
all: bin manpages
3536

3637
bin:
37-
cargo build --release --features "$(CARGO_FEATURES)"
38+
cargo build --profile $(CARGO_PROFILE) --features "$(CARGO_FEATURES)"
3839

3940
.PHONY: manpages
4041
manpages:
41-
cargo run --package xtask -- manpages
42+
cargo run --profile $(CARGO_PROFILE) --package xtask -- manpages
4243

4344
STORAGE_RELATIVE_PATH ?= $(shell realpath -m -s --relative-to="$(prefix)/lib/bootc/storage" /sysroot/ostree/bootc/storage)
4445
install:

0 commit comments

Comments
 (0)