Hi, On 05/19/2014 08:34 PM, chru...@suse.cz wrote: > Hi! >> -MAKE_DEPS := $(LIBLTP) $(LSN_H) >> +MAKE_ORDER_ONLY_DEPS := $(LSN_H) >> +MAKE_NORMAL_DEPS := $(LIBLTP) > Looking at this, the LSN_H is linux_syscall_numbers.h header, shouldn't > we recompile a testcases if this header changes as well? Yeah, Got it. > > Can't we just change the MAKE_DEPS to normal dependencies and be done > with it? OK, it will be enough. > > Anyway we should check twice that this would not break recepies with > automatic list of prerequisities $^ which does not include order only > ones. Here I met some issues. Could you please give me some hint and currently I do not know how to fix it.
When I applied the v2 Patch and according to your comments, make "MAKE_NORMAL_DEPS := $(LIBLTP) $(LSN_H)" in include/mk/testcases.mk. For this rule "$(MAKE_TARGETS): $(MAKE_NORMAL_DEPS) | $(MAKE_ORDER_ONLY_DEPS)" in include/mk/generic_leaf_target.inc. The implicit rule in Makefile will also make "MAKE_NORMAL_DEPS" in the compile command. For example: gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -I/home/lege/extern_stroage/test/ltp-dev/testcases/kernel/include -I../../../../include -I../../../../include -L../../../../lib access05.c /home/lege/extern_stroage/test/ltp-dev/lib/libltp.a /home/lege/extern_stroage/test/ltp-dev/testcases/kernel/include/linux_syscall_numbers.h -lltp -o access05 But before this patch, the command will be: gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -I/home/lege/extern_stroage/test/ltp-dev/testcases/kernel/include -I../../../../include -I../../../../include -L../../../../lib access05.c -lltp -o access05 How can I remove these "MAKE_NORMAL_DEPS" from the command. I googled this issue, but do not find any useful, thanks. Regards, XIaoguang Wang > ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list