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
In reply to Re: system call for makefile
by helphand
in thread system call for makefile
by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |