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