I'm having trouble understanding what you mean. When you've read my example below, if the lack of "hello from theconffile" output in the first run of make, and its presence in the second run, doesn't answer your question and show you how to solve the problem, then please modify my example to illustrate your problem, saying what you think the output should be where the actual output differs.
mart...@whitewater:~/tmp/make-jpm$ cat > theconffile $(info hello from theconffile) mart...@whitewater:~/tmp/make-jpm$ cat > Makefile default: ^ MAKEFILES=theconffile $(MAKE) -C component -f Makefile mart...@whitewater:~/tmp/make-jpm$ mkdir component mart...@whitewater:~/tmp/make-jpm$ cat > component/Makefile $(info hello from component/Makefile) default:; mart...@whitewater:~/tmp/make-jpm$ make MAKEFILES=theconffile make -C component -f Makefile hello from component/Makefile make[1]: Entering directory `/home/martind/tmp/make-jpm/component' make[1]: `default' is up to date. make[1]: Leaving directory `/home/martind/tmp/make-jpm/component' mart...@whitewater:~/tmp/make-jpm$ cat > Makefile default: ^ MAKEFILES=$(CURDIR)/theconffile $(MAKE) -C component -f Makefile mart...@whitewater:~/tmp/make-jpm$ make MAKEFILES=/home/martind/tmp/make-jpm/theconffile make -C component -f Makefile hello from theconffile hello from component/Makefile make[1]: Entering directory `/home/martind/tmp/make-jpm/component' make[1]: `default' is up to date. make[1]: Leaving directory `/home/martind/tmp/make-jpm/component' mart...@whitewater:~/tmp/make-jpm$ -----Original Message----- From: bug-make-bounces+mdorey=bluearc....@gnu.org [mailto:bug-make-bounces+mdorey=bluearc....@gnu.org] On Behalf Of jean-luc malet Sent: Friday, October 30, 2009 04:24 To: bug-make@gnu.org Subject: issue when using MAKEFILES variable hi! I face issue when using MAKEFILES variable this variable is set into a toplevel makefile and contain only export varname=varvalue lines then submake is called into rules like this target : MAKEFILES=theconffile ${MAKE} -C the/component/path -f Makefile target into the/component/path/Makefile I have several include, some targets.... and $(warning ${VAR}) $(warning ${MAKEFILE_LIST}) $(warning ${MAKEFILES}) where VAR is a variable found only in theconffile MAKEFILE_LIST and MAKEFILES warning show correct behaviour : theconfile is first makefile read then Makefile is.... VAR warning is correct, thus I think that the behaviour in correct.... BUT all targets fails there is a target todo: into the Makefile and make complain about not knowing how to do todo.... HOWEVER if I do include theconffile into Makefile and run sub make with ${MAKE} -C the/component/path -f Makefile target then it works....... I'm puzzled.... thanks a lot JLM -- KISS! (Keep It Simple, Stupid!) (garde le simple, imbécile!) "mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses simples et qui marchent, espèce d'imbécile!" ----------------------------- "Si vous pensez que vous êtes trop petit pour changer quoique ce soit, essayez donc de dormir avec un moustique dans votre chambre." Betty Reese http://www.grainesdechangement.com/citations.htm _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
_______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make