%% "leon j. breedt" <[EMAIL PROTECTED]> writes: ljb> in the kernel, they have something like:
ljb> quiet=quiet_ ljb> quiet_cmd_cc= CC $< ljb> cmd_cc= $(CC) $(CFLAGS) ... ljb> and then an echo of $($(quiet)cmd_cc). but how can i access the contents ljb> of the command script? ljb> an example command script: ljb> $(WGET) http://someurl/somefile || exit 1 ljb> i want to echo "WGET url" in this case, but that's ljb> nigh on impossible, Correct. There's no way to access the command script as a variable. You could do this: PRINT_WGET = @echo WGET $1; $(WGET) $1 then in the command script: doit: $(call PRINT_WGET, http://someurl/somefile) || exit 1 but that's your only option. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
