Use $(shell pwd) instead of $(pwd) in Makefile

This commit is contained in:
Philipp Oppermann
2018-03-14 17:01:20 +01:00
committed by GitHub
parent ed06b77864
commit 8d312293b1

View File

@@ -257,7 +257,7 @@ $(kernel): kernel $(rust_os) $(assembly_object_files) $(linker_script)
$(assembly_object_files) $(rust_os) $(assembly_object_files) $(rust_os)
kernel: 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. 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.