Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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)