Your question is not really a Perl question and more a question of job control or a shell question. Personally, I would use a plain shell script instead of a makefile, as you have not explained how the two processes depend on each other and by what mechanism make would determine that it only needs to run the second step.
#!/bin/ksh set -e perl -I -Mmod1 -Mmod2 pgm.pl paramFile perl -I -Mmod3 -Mmod4 pgm2.pl paramFile2
The -e switch makes the shell script stop if any of the programs fails.
In reply to Re: how to create makefile?
by Corion
in thread how to create makefile?
by carolw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |