[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable order of operations
From: |
Harvey Chapman |
Subject: |
Re: Variable order of operations |
Date: |
Mon, 02 Mar 2009 12:53:08 -0500 |
User-agent: |
Postbox 1.0b7 (Macintosh/2009020805) |
Philip Guenther wrote:
BTW, when invoking make recursively, you almost certainly should use
$(MAKE) instead of just 'make'. This has two effects:
Thanks for the tip. I'll make that change.
What behavior makes you say that the ifeq is being evaluated after the
'cgi' target?
Sorry, I should've attached output.
So it seems to be working for me. What do you get when you try that?
Also, what's the output of "make --version"?
GNU Make 3.81
With debugging: Notice the "HIDE=" that prints after the "cgi" target.
address@hidden:~/nm_test_backup/webgui$ DEBUG=1 make
Building... cgi
DEBUG="1" GUMSTIX="" BUILD_ARM="" CC="cc" CXX="g++" AR="ar" make -C cgi
make[1]: Entering directory `/home/hchapman/nm_test_backup/webgui/cgi'
Makefile:21: "Calculating buildroot location..."
rm -f .depend
/home/hchapman/nm_test_backup/webgui/cgi/../../../gsbr/build_arm_nofpu/staging_dir/bin/arm-linux-uclibcgnueabi-g++
-I/home/hchapman/nm_test_backup/webgui/cgi/../../../gsbr/build_arm_nofpu/staging_dir/include/libgd
-Wall -Wundef -rdynamic -I../.. -M nbcuicommands.cc
spectrumpushscript.cc nbcstatus.cc socket_client.cc log.cc
../../timer.cpp ../../timer_handler.cpp >> .depend
/home/hchapman/nm_test_backup/webgui/cgi/../../../gsbr/build_arm_nofpu/staging_dir/bin/arm-linux-uclibcgnueabi-gcc
-I/home/hchapman/nm_test_backup/webgui/cgi/../../../gsbr/build_arm_nofpu/staging_dir/include/libgd
-Wall -Wundef -rdynamic -I../.. -O -ggdb
-I/home/hchapman/nm_test_backup/webgui/cgi/../../../gsbr/build_arm_nofpu/staging_dir/include/libgd
-Wall -Wundef -rdynamic -I../.. -M specgen.c >> .depend
make[1]: Leaving directory `/home/hchapman/nm_test_backup/webgui/cgi'
HIDE=
DEBUG="1" GUMSTIX="0" BUILD_ARM="" CC="ccache cc" CXX="ccache g++"
AR="ccache ar" make -C webgui
make[1]: Entering directory `/home/hchapman/nm_test_backup/webgui'
Building... cgi
DEBUG="1" GUMSTIX="0" BUILD_ARM="" CC="ccache cc" CXX="ccache g++"
AR="ccache ar" make -C cgi
make[2]: Entering directory `/home/hchapman/nm_test_backup/webgui/cgi'
...
...
make[2]: Leaving directory `/home/hchapman/nm_test_backup/webgui/cgi'
HIDE=
make[1]: Leaving directory `/home/hchapman/nm_test_backup/webgui'
Without debugging: Notice the "HIDE=@" that prints after the "cgi" target.
DEBUG="0" GUMSTIX="0" BUILD_ARM="" CC="ccache cc" CXX="ccache g++"
AR="ccache ar" make -C webgui
make[1]: Entering directory `/home/hchapman/nm_test_backup/webgui'
Building... cgi
DEBUG="0" GUMSTIX="0" BUILD_ARM="" CC="ccache cc" CXX="ccache g++"
AR="ccache ar" make -C cgi
make[2]: Entering directory `/home/hchapman/nm_test_backup/webgui/cgi'
make[2]: Leaving directory `/home/hchapman/nm_test_backup/webgui/cgi'
HIDE=@
make[1]: Leaving directory `/home/hchapman/nm_test_backup/webgui'