On a freshly cloned ltp-git source-dir and with ltp-full-20130109, executing
'make distclean' fails with these errors:

testcases/realtime/lib/Makefile:25: ../../../../config.mk: No such file or 
directory
make[2]: *** No rule to make target `../../../../config.mk'.  Stop.

The patch fixes the issue by using env_pre.mk to include config.mk from
the correct location.

Tested with ltp-full-20130109 and ltp-git (20130109-5-g385d792).

Signed-off-by: Sedat Dilek <[email protected]>
---
 testcases/realtime/lib/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/realtime/lib/Makefile b/testcases/realtime/lib/Makefile
index 8860549..fbbb873 100644
--- a/testcases/realtime/lib/Makefile
+++ b/testcases/realtime/lib/Makefile
@@ -22,7 +22,8 @@
 
 top_srcdir             ?= ../../..
 
-include $(top_srcdir)/../config.mk
+include $(top_srcdir)/include/mk/env_pre.mk
+include $(abs_srcdir)/../config.mk
 
 CFLAGS                 += -D_GNU_SOURCE
 
-- 
1.8.1.1


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to