in reply to system call for makefile
Works fine here, but the line of code you show above is bad. Should be...
use strict; use warnings; my $MAKECOMMAND='make'; my $target='test'; system("$MAKECOMMAND | tee -a ./prepare_$target.log");
When run in a directory with a valid Makefile, it worked perfectly for me and the log contained the stdout messages.
Scott
|
|---|