From 7f691d8f8f3fa229426e4e41786b1bcf3944fe3e Mon Sep 17 00:00:00 2001 From: Filippo Valsorda <1225294+FiloSottile@users.noreply.github.com> Date: Sat, 7 Mar 2020 16:32:46 -0500 Subject: [PATCH] Use CURDIR instead of PWD PWD is set by the shell, not make, and might not match. For example, this broke the build through Homebrew, because PWD stays at the directory where brew is ran. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3d688f7..e1d4c8e 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ LINUX_HEADERS_SITE = http://ftp.barfooze.de/pub/sabotage/tarballs/ DL_CMD = wget -c -O -COWPATCH = $(PWD)/cowpatch.sh +COWPATCH = $(CURDIR)/cowpatch.sh HOST = $(if $(NATIVE),$(TARGET)) BUILD_DIR = build/$(if $(HOST),$(HOST),local)/$(TARGET)