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