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 <nic.henke@versity.com>
Signed-off-by: Zach Brown <zab@zabbo.net>
This commit is contained in:
Nic Henke
2016-10-20 13:58:29 -06:00
committed by Zach Brown
parent 16e94f6b7c
commit ad2f5b33ee

View File

@@ -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