From 20f410fea8dee5df649762de163a4e29ad2b3074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 15 Jun 2011 18:50:35 +0200 Subject: erts: Fix dependency generation Apparantly, an invocation like "make generate depend" will run the 'generate' and 'depend' targets in parallel, even if the Makefile contains a .NOTPARALLEL target. In this case, it will result in incorrect dependencies since not all files have been generated when the dependencies are computed. Split up the single 'make' invocation to two invocations, to force the targets to be run sequentially. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 5dc54d42f7..96a9c407b4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -489,7 +489,8 @@ preloaded: $(MAKE) opt BUILD_ALL=true dep depend: - test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=$(ERL_TOP) $(MAKE) generate depend) + test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=$(ERL_TOP) $(MAKE) generate) + test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=$(ERL_TOP) $(MAKE) depend) test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/lib_src && ERL_TOP=$(ERL_TOP) $(MAKE) depend) # Creates "erl" and "erlc" in bootstrap/bin which uses the precompiled -- cgit v1.2.3