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