mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
build system: create cargo folders more robustly
On some systems, `$(shell mkdir -p ~/.cargo/registry)` ended up not replacing `~` with the home directory, but rather created a directory named `~`. The new approach should be a bit more robust.
This commit is contained in:
parent
7a1a8d1aef
commit
5feacf284d
@ -95,7 +95,7 @@ $(APPLICATION_RUST_MODULE).module: $(CARGO_LIB) FORCE
|
||||
# This prevents cargo inside docker from creating them with root permissions
|
||||
# (should they not exist), and also from re-building everything every time
|
||||
# because the .cargo inside is as ephemeral as the build container.
|
||||
$(shell mkdir -p ~/.cargo/git ~/.cargo/registry)
|
||||
$(shell mkdir -p $(HOME)/.cargo/git $(HOME)/.cargo/registry)
|
||||
|
||||
FORCE:
|
||||
.phony: FORCE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user