From ea89644bfa81b1277c96bbb7cacf4ed3ca9f94f9 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Sat, 4 May 2019 23:00:48 +0200 Subject: [PATCH] Ensure the library is built before the samples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building in parallel, Make can start building the samples before it’s finished building the library, which causes the build to fail. Adding an explicit dependency ensures that the library is built before the samples. Signed-off-by: Stephen Kitt --- nufxlib/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nufxlib/Makefile.in b/nufxlib/Makefile.in index cf5d15d..c64bb59 100644 --- a/nufxlib/Makefile.in +++ b/nufxlib/Makefile.in @@ -69,7 +69,7 @@ install-shared: $(SHARED_PRODUCT) $(srcdir)/mkinstalldirs $(includedir) $(INSTALL_DATA) NufxLib.h $(includedir) -samples:: +samples:: $(STATIC_PRODUCT) @echo "Building samples..." @(cd samples; set +e; unset CFLAGS OBJS; set -e; \ @SET_MAKE@ LIB_PRODUCT="../$(PRODUCT)" $(MAKE))