Hello,

I'm using the shell hack in 
http://drdobbs.com/embedded-systems/197003338?pgno=4 to extricate all the 
commands used in the process of building a program.

# In my Makefile
OLD_SHELL := $(SHELL)
SHELL = $(warning [$@])$(OLD_SHELL) -x

When I build, this is what's logged:
+ /toolchain/lin32/make-3.81/bin/make -j24 MAKEFLAGS= -f 
/foo/make/mk/foo-pkg-bar.make -C SUBDIRS SUBDIR=fooimage/lib/cab 
SUBDIR_OBJ_DEFAULT=../fooimage-lib-cab-obj.a SUBDIR_NOLINK= subdir
+ echo '** Compiling        fooimage/lib/cab/foo.c'
/foo/make/mk/subdir.mk:756: [fooimage/lib/cab/foo.o]
+ /toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc -Wno-pointer-sign 
-Wno-strict-prototypes -fno-strict-aliasing -Wp,-MMD,fooimage/lib/cab/foo.dd -c 
-o fooimage/lib/cab/foo.o -fPIC -DVMX86_RELEASE -DVMX86_LIMITS -DVMX86_DESKTOP 
-DBUILT_BY_mlum -DUI_NOT_REENTRANT
/foo/make/mk/subdir.mk:756: [fooimage/lib/cab/foo.o]


I'm able to get the line that starts with '+', but I'm wondering how to get the 
lines that indicate the path Make is using at the time it's calling 
/toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc using the shell hack.  For 
example, I want to get the explicit path to SUBDIRS while I'm executing 
/toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc echoed in that line.  Does 
anyone have any suggestions?

I really appreciate any help!

Thank you,
-Margaret

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to