Ok, thanks.
On Sat, 31 Aug 2019, 19:44 Paul Smith, wrote:
> On Fri, 2019-08-30 at 16:37 +0530, nikhil jain wrote:
> > Does GMAKE has a retry option. If a command in a rule is failed, is
> > there an option to retry it or I have to implement it ?
>
> GNU make has no built-in facility to retry fai
Hi nihkil,
Try using a "macro":
# $(1) is retry count: integer constant in shell test syntax
# $(2) is command
#
define retry-times
i=0; while [ $$i -lt $(1) ]; do ($(2)) && exit 0; i=$$(( i + 1 ));
done ; exit 1
endef
target: prerequisite
$(call retry-times,5,your command here)
Fixed r
Hi,
Thanks for your reply.
Actually, this is not possible in my case. The builds are run by the R&D
teams who are using legacy GNUmakefile. So, I can't force them to change
their way and there are around 10k+ commands in a makefile.
I would rather implement the retry feature in GMAKE like I had i
On 2019-09-01 23:04, nikhil jain wrote:
Hi,
Thanks for your reply.
Actually, this is not possible in my case. The builds are run by the
R&D teams who are using legacy GNUmakefile. So, I can't force them to
change their way and there are around 10k+ commands in a makefile.
I would rather imple
Hi,
Thanks for your reply.
1) Yes retrying every command ONLY when it fails which is less than 1% of
the case, less than .5% of the cases. It is very very rare.
The paths are visible to all the hosts and there are no clock issues. Even
if there are clock issues or path issues, I can debug that a