xref: /linux/tools/net/ynl/Makefile (revision 2c373e75155bcc9c81060cdc07ee1b59e113bd2b)
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 hardclean:
15	@for dir in $(SUBDIRS) ; do \
16		if [ -f "$$dir/Makefile" ] ; then \
17			$(MAKE) -C $$dir $@; \
18		fi \
19	done
20
21.PHONY: clean all $(SUBDIRS)
22