blob: e8687146f2214f7e4b8733b6fd35310ba0f7b2a9 (
plain)
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
|
PREFIX ?= /usr/local
BIN_DEST ?= ${PREFIX}/bin
MAN_DEST ?= ${PREFIX}/man
CARGO ?= cargo
SCDOC ?= scdoc
RM ?= rm
man_targets = man/rs.1
.PHONY: default
default:
@${CARGO} build
man/rs.%:
@${SCDOC} < $@.scd > $@
target/release/rs:
@echo Building default target
@${CARGO} build --release --locked --all-features --target-dir=target
target/%/release/rs:
@echo Building target $*
@${CARGO} build --target $* --release --locked --all-features --target-dir=target
musl: target/x86_64-unknown-linux-musl/release/rs
strip target/x86_64-unknown-linux-musl/release/rs
@${CARGO} run --target x86_64-unknown-linux-musl --release
test-musl:
@${CARGO} test --target x86_64-unknown-linux-musl --release --locked --all-features --target-dir=target
|