The Makefile in 1st attachment produces output in 2nd attachment. How should the which command within the for loop script be modified to produce the same output as the which command before the for loop script?
TIA. -regards, Larry
COMPILE.gcc=g++ compiles: make -version @echo "COMPILE.gcc=" $(COMPILE.gcc) which $(COMPILE.gcc) for HOW_CXX in gcc ; do \ which $$(COMPILE.$$HOW_CXX) ; \ done ;
Compilation started at Mon Jul 27 12:43:55 make make -version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for x86_64-pc-linux-gnu COMPILE.gcc= g++ which g++ /usr/local/bin/g++ for HOW_CXX in gcc ; do \ which $(COMPILE.$HOW_CXX) ; \ done ; /bin/sh: 2: COMPILE.gcc: not found make: *** [compiles] Error 1 Compilation exited abnormally with code 2 at Mon Jul 27 12:43:55
_______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make