From 8d312293b175a47b82e3b06d623dab626cd3f19a Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 14 Mar 2018 17:01:20 +0100 Subject: [PATCH] Use `$(shell pwd)` instead of `$(pwd)` in Makefile --- blog/content/posts/03-set-up-rust/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/posts/03-set-up-rust/index.md b/blog/content/posts/03-set-up-rust/index.md index be4ff1d8..29768029 100644 --- a/blog/content/posts/03-set-up-rust/index.md +++ b/blog/content/posts/03-set-up-rust/index.md @@ -257,7 +257,7 @@ $(kernel): kernel $(rust_os) $(assembly_object_files) $(linker_script) $(assembly_object_files) $(rust_os) kernel: - @RUST_TARGET_PATH=$(pwd) xargo build --target $(target) + @RUST_TARGET_PATH=$(shell pwd) xargo build --target $(target) ``` We add a new `kernel` target that just executes `xargo build` and modify the `$(kernel)` target to link the created static lib. We also add the new `kernel` target to the `.PHONY` list, since it does not belong to a file with that name.