in reply to how to create makefile?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to create makefile?
by carolw (Sexton) on Jan 09, 2015 at 09:09 UTC | |
by Corion (Patriarch) on Jan 09, 2015 at 09:23 UTC | |
by carolw (Sexton) on Jan 09, 2015 at 09:33 UTC | |
by Corion (Patriarch) on Jan 09, 2015 at 09:41 UTC | |
by carolw (Sexton) on Jan 09, 2015 at 09:49 UTC | |
| |
by Anonymous Monk on Jan 09, 2015 at 10:09 UTC |