From ad2f5b33eef281ae5d7986960c57100dfae54afe Mon Sep 17 00:00:00 2001 From: Nic Henke Date: Thu, 20 Oct 2016 13:58:29 -0600 Subject: [PATCH] Use make variable CURDIR instead of PWD When running make in a limited shell or in docker, there is no PWD from shell. By using CURDIR we avoid worrying about the environment and let make take care of this for us. Signed-off-by: Nic Henke Signed-off-by: Zach Brown --- kmod/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kmod/Makefile b/kmod/Makefile index 6a3508c2..31cee8f2 100644 --- a/kmod/Makefile +++ b/kmod/Makefile @@ -29,8 +29,8 @@ ALL: module # #define _RH_KABI_REPLACE_UNSAFE(_orig, _new) _new module: - make CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(PWD)/src - make C=2 CF="-D__CHECK_ENDIAN__" CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(PWD)/src + make CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(CURDIR)/src + make C=2 CF="-D__CHECK_ENDIAN__" CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(CURDIR)/src clean: - make CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(PWD)/src clean + make CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(CURDIR)/src clean