Geoffrey Young wrote:
the leading '-' tells make to ignore any errors. removing it makes the
error fatal.


-            print $fh "$dir-$targ:\n\t-cd $dir && \$(MAKE) $targ\n\n";
+            print $fh "$dir-$targ:\n\tcd $dir && \$(MAKE) $targ\n\n";


I always thought that the - only applied to the cd command (in this case)
and wouldn't distribute across the &&.  but make certainly isn't one of my
better areas.

Command line prefixes always apply to the whole line so you can read them as:

  -(cd $dir && \$(MAKE) $targ)

like in verbosity level:

  @cd $dir && \$(MAKE) $targ

but I had no idea that '-' makes things non-fatal ;)

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to