xref: /linux/tools/net/ynl/Makefile (revision 0a149ab78ee220c75eef797abea7a29f4490e226)
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