mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-16 01:07:09 +00:00
Work around a bug in cargo
Signed-off-by: Mattias Andrée <maandree@kth.se>
This commit is contained in:
parent
a77230a6e8
commit
54ed5f6756
12
Makefile
12
Makefile
@ -4,13 +4,21 @@ BUILD = target/release/exa
|
|||||||
|
|
||||||
$(BUILD):
|
$(BUILD):
|
||||||
@which rustc > /dev/null || { echo "exa requires Rust to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
|
@which rustc > /dev/null || { echo "exa requires Rust to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
|
||||||
cargo build --release
|
if test -n "$$(echo "$$CC" | cut -d \ -f 1)"; then \
|
||||||
|
env CC="$$(echo "$$CC" | cut -d \ -f 1)" cargo build --release; \
|
||||||
|
else\
|
||||||
|
env -u CC cargo build --release; \
|
||||||
|
fi
|
||||||
|
|
||||||
build: $(BUILD)
|
build: $(BUILD)
|
||||||
|
|
||||||
build-no-git:
|
build-no-git:
|
||||||
@which rustc > /dev/null || { echo "exa requires Rust to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
|
@which rustc > /dev/null || { echo "exa requires Rust to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
|
||||||
cargo build --release --no-default-features
|
if test -n "$$(echo "$$CC" | cut -d \ -f 1)"; then \
|
||||||
|
env CC="$$(echo "$$CC" | cut -d \ -f 1)" cargo build --release --no-default-features; \
|
||||||
|
else\
|
||||||
|
env -u CC cargo build --release --no-default-features; \
|
||||||
|
fi
|
||||||
|
|
||||||
INSTALL = $(PREFIX)/bin/exa
|
INSTALL = $(PREFIX)/bin/exa
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user