Closed rickywu0421 closed 1 year ago
The $PWD environment variable doesn't exist when we run sudo make, so the PWD in Makefile will be evaulated to an empty string. Replace unreliable PWD by shell function $(shell pwd).
$PWD
sudo make
PWD
$(shell pwd)
The
$PWD
environment variable doesn't exist when we runsudo make
, so thePWD
in Makefile will be evaulated to an empty string. Replace unreliablePWD
by shell function$(shell pwd)
.