|
From: | Martin Dorey |
Subject: | RE: issue when using MAKEFILES variable |
Date: | Fri, 30 Oct 2009 14:18:45 -0700 |
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. address@hidden:~/tmp/make-jpm$ cat > theconffile $(info hello from theconffile) address@hidden:~/tmp/make-jpm$ cat > Makefile default: ^ MAKEFILES=theconffile $(MAKE) -C component -f Makefile address@hidden:~/tmp/make-jpm$ mkdir component address@hidden:~/tmp/make-jpm$ cat > component/Makefile $(info hello from component/Makefile) default:; address@hidden:~/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' address@hidden:~/tmp/make-jpm$ cat > Makefile default: ^ MAKEFILES=$(CURDIR)/theconffile $(MAKE) -C component -f
Makefile address@hidden:~/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' address@hidden:~/tmp/make-jpm$ -----Original Message----- 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 address@hidden http://lists.gnu.org/mailman/listinfo/bug-make |
[Prev in Thread] | Current Thread | [Next in Thread] |