mirror of https://github.com/fadden/nulib2.git
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:
parent
9fdc77a108
commit
ea89644bfa
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue