186878f14SJakub Kicinski# SPDX-License-Identifier: GPL-2.0 286878f14SJakub Kicinski 386878f14SJakub KicinskiSUBDIRS = lib generated samples 486878f14SJakub Kicinski 586878f14SJakub Kicinskiall: $(SUBDIRS) 6*25b5a2a1SStanislav Fomichev ./ynl-regen.sh -f -p $(PWD)/../../../ 786878f14SJakub Kicinski 886878f14SJakub Kicinski$(SUBDIRS): 986878f14SJakub Kicinski @if [ -f "$@/Makefile" ] ; then \ 1086878f14SJakub Kicinski $(MAKE) -C $@ ; \ 1186878f14SJakub Kicinski fi 1286878f14SJakub Kicinski 1386878f14SJakub Kicinskiclean hardclean: 1486878f14SJakub Kicinski @for dir in $(SUBDIRS) ; do \ 1586878f14SJakub Kicinski if [ -f "$$dir/Makefile" ] ; then \ 1686878f14SJakub Kicinski $(MAKE) -C $$dir $@; \ 1786878f14SJakub Kicinski fi \ 1886878f14SJakub Kicinski done 1986878f14SJakub Kicinski 2086878f14SJakub Kicinski.PHONY: clean all $(SUBDIRS) 21