1# SPDX-License-Identifier: GPL-2.0 2 3SUBDIRS = lib generated samples 4 5all: $(SUBDIRS) 6 7samples: | lib generated 8 9$(SUBDIRS): 10 @if [ -f "$@/Makefile" ] ; then \ 11 $(MAKE) -C $@ ; \ 12 fi 13 14clean distclean: 15 @for dir in $(SUBDIRS) ; do \ 16 if [ -f "$$dir/Makefile" ] ; then \ 17 $(MAKE) -C $$dir $@; \ 18 fi \ 19 done 20 21.PHONY: all clean distclean $(SUBDIRS) 22