summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2010-01-05 11:28:39 -0500
committerAndy Dougherty <doughera@lafayette.edu>2010-01-05 11:28:39 -0500
commit2b63e250843b907e476587f037c0784d701fca62 (patch)
treece429c95afbd5c9a715f4745944956b774336211 /Makefile.SH
parent0d311fbe5955d5afd34efcc8edeacbe59c67778c (diff)
downloadperl-2b63e250843b907e476587f037c0784d701fca62.tar.gz
Avoid a possible race condition where a parallel make might
attempt to update git_version.h and lib/Config_git.pl in concurrent processes.
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH6
1 files changed, 5 insertions, 1 deletions
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