mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
9cf9b57082
Parallel builds of ynl: make -C tools/net/ynl/ -j 4 don't work correctly right now. samples get handled before generated, so build of samples does not notice that protos.a has changed. Order samples to be last. Link: https://lore.kernel.org/r/20231129193622.2912353-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
22 lines
339 B
Makefile
22 lines
339 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
SUBDIRS = lib generated samples
|
|
|
|
all: $(SUBDIRS)
|
|
|
|
samples: | lib generated
|
|
|
|
$(SUBDIRS):
|
|
@if [ -f "$@/Makefile" ] ; then \
|
|
$(MAKE) -C $@ ; \
|
|
fi
|
|
|
|
clean hardclean:
|
|
@for dir in $(SUBDIRS) ; do \
|
|
if [ -f "$$dir/Makefile" ] ; then \
|
|
$(MAKE) -C $$dir $@; \
|
|
fi \
|
|
done
|
|
|
|
.PHONY: clean all $(SUBDIRS)
|