From 2b63e250843b907e476587f037c0784d701fca62 Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Tue, 5 Jan 2010 11:28:39 -0500 Subject: Avoid a possible race condition where a parallel make might attempt to update git_version.h and lib/Config_git.pl in concurrent processes. --- Makefile.SH | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.SH') diff --git a/Makefile.SH b/Makefile.SH index 1a22205329..97df05ad36 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -559,7 +559,11 @@ all: $(FIRSTMAKEFILE) $(MINIPERL_EXE) miniperl $(generated_pods) $(private) $(un .PHONY: all translators utilities -lib/Config_git.pl git_version.h: $(MINIPERL_EXE) make_patchnum.pl +# Both git_version.h and lib/Config_git.pl are built +# by make_patchnum.pl. +git_version.h: lib/Config_git.pl + +lib/Config_git.pl: $(MINIPERL_EXE) make_patchnum.pl $(MINIPERL) make_patchnum.pl # make sure that we recompile perl.c if the git version changes -- cgit v1.2.1