When compiling, the following error occurred:

make[6]: Entering directory 
`/nfs/hosts/sestonas06/homes/mlil/git/ltp/testcases/kernel/mem/lib'
make[6]: ../../../../../testcases/kernel/mem/lib/Makefile: No such file or 
directory

This is because the file libmem.mk tried to both change current working
to where the Makefile is as well as giving a relative path to it.

This has been fixed by simply removing the relative path to the Makefile since
make knows how to find the correct make file itself.

Reported-by: Xiaoguang Wang <wangxg.f...@cn.fujitsu.com>
Signed-off-by: Mats Liljegren <mats.liljeg...@enea.com>
---
 testcases/kernel/mem/include/libmem.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/mem/include/libmem.mk 
b/testcases/kernel/mem/include/libmem.mk
index 7ebcf05..a90ce8f 100644
--- a/testcases/kernel/mem/include/libmem.mk
+++ b/testcases/kernel/mem/include/libmem.mk
@@ -31,13 +31,13 @@ $(LIBMEM_DIR):
        mkdir -p "$@"
 
 $(LIBMEM): $(LIBMEM_DIR)
-       $(MAKE) -C $^ -f "$(LIBMEM_SRCDIR)/Makefile" all
+       $(MAKE) -C $^ all
 
 MAKE_DEPS              += $(LIBMEM)
 
 trunk-clean:: | lib-clean
 
 lib-clean:: $(LIBMEM_DIR)
-       $(MAKE) -C $^ -f "$(LIBMEM_SRCDIR)/Makefile" clean
+       $(MAKE) -C $^ clean
 
 include $(top_srcdir)/testcases/kernel/include/lib.mk
-- 
1.7.10.4


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to