Ensure the library is built before the samples

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 <steve@sk2.org>
This commit is contained in:
Stephen Kitt 2019-05-04 23:00:48 +02:00
parent 9fdc77a108
commit ea89644bfa
No known key found for this signature in database
GPG Key ID: 80D302F5886D839C
1 changed files with 1 additions and 1 deletions

View File

@ -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))